nl.vpro.domain.api.media.ProgramResult 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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import nl.vpro.domain.api.Result;
import nl.vpro.domain.media.Program;
/**
* Exists only because of https://jira.vpro.nl/browse/API-118
* @author Michiel Meeuwissen
* @since 2.0
*/
@XmlRootElement(name = "programResult")
@XmlType(name = "programResultType")
public class ProgramResult extends Result {
public static ProgramResult emptyResult(Long offset, Integer max) {
return new ProgramResult(Collections.emptyList(), offset, max, Total.EMPTY);
}
public ProgramResult() {
}
public ProgramResult(List programs, Long offset, Integer max, Total total) {
super(programs, offset, max, total);
}
public ProgramResult(Result programs) {
super(programs);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy