nl.vpro.domain.api.media.MediaResult 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
The newest version!
package nl.vpro.domain.api.media;
import java.util.Collections;
import java.util.List;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.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