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

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

Go to download

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 list, Long offset, Integer max, Total total) {
        super(list, offset, max, total);
    }

    public MediaResult(Result mediaObjects) {
        super(mediaObjects);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy