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

nl.vpro.domain.api.media.ProgramResult 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.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