nl.vpro.domain.api.media.ScheduleSearchResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-domain Show documentation
Show all versions of api-domain Show documentation
Contains the objects used by the Frontend API, like forms and result objects
package nl.vpro.domain.api.media;
import java.util.Collections;
import java.util.List;
import javax.xml.bind.annotation.*;
import nl.vpro.domain.api.ApiScheduleEvent;
import nl.vpro.domain.api.GenericScheduleSearchResult;
import nl.vpro.domain.api.SearchResult;
import nl.vpro.domain.api.SearchResultItem;
/**
* Exists only because of https://jira.vpro.nl/browse/API-118
*
* @author Michiel Meeuwissen
* @since 2.0
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "scheduleSearchResultType", propOrder = {})
@XmlRootElement(name = "scheduleSearchResult")
public class ScheduleSearchResult extends GenericScheduleSearchResult {
public ScheduleSearchResult() {
}
public static ScheduleSearchResult emptyResult(Long offset, Integer max) {
return new ScheduleSearchResult(Collections.emptyList(), offset, max, Total.EMPTY);
}
public ScheduleSearchResult(List> list, Long offset, Integer max, Total total) {
super(list, offset, max, total);
}
public ScheduleSearchResult(SearchResult extends ApiScheduleEvent> sr) {
super(sr);
}
@Override
public ScheduleResult asResult() {
return new ScheduleResult(super.asResult());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy