nl.vpro.domain.api.media.MediaResult Maven / Gradle / Ivy
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.MediaObject;
/**
* Exists only because of https://jira.vpro.nl/browse/API-118
*
* @author Michiel Meeuwissen
* @since 2.0
*/
@XmlRootElement(name = "mediaResult")
@XmlType(name = "mediaResultType")
public class MediaResult extends Result {
public MediaResult() {
}
public static MediaResult emptyResult(Long offset, Integer max) {
return new MediaResult(Collections.emptyList(), offset, max, Total.EMPTY);
}
public MediaResult(List extends MediaObject> list, Long offset, Integer max, Total total) {
super(list, offset, max, total);
}
public MediaResult(Result extends MediaObject> mediaObjects) {
super(mediaObjects);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy