All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.vpro.domain.api.media.ScheduleSearchResult Maven / Gradle / Ivy

Go to download

Contains the objects used by the Frontend API, like forms and result objects

There is a newer version: 8.3.3
Show newest version
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 sr) {
        super(sr);
    }

    @Override
    public ScheduleResult asResult() {
        return new ScheduleResult(super.asResult());
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy