Class MovieDTO

  • All Implemented Interfaces:
    Movie

    @Immutable
    @WithHiddenImplementation
    public abstract class MovieDTO
    extends Object
    implements Movie
    DTO implementation of the Movie interface


    Objects of this class reflect the data received by the remote service and are immutable so that their content can not be changed once an instance has been created. New objects of this class may be created by using the corresponding MovieDTO.Builder.

    • Constructor Detail

      • MovieDTO

        public MovieDTO()
    • Method Detail

      • getActors

        public List<Movie.People> getActors()
        Description copied from interface: Movie
        Get all objects of the {data.people.actors} JSON property in a list
        Specified by:
        getActors in interface Movie
        Returns:
        The actors property from the received JSONs people-node as list
      • getDirectors

        public List<Movie.People> getDirectors()
        Description copied from interface: Movie
        Get all objects of the {data.people.directors} JSON property in a list
        Specified by:
        getDirectors in interface Movie
        Returns:
        The directors property from the received JSONs people-node as list
      • getProducers

        public List<Movie.People> getProducers()
        Description copied from interface: Movie
        Get all objects of the {data.people.producers} JSON property in a list
        Specified by:
        getProducers in interface Movie
        Returns:
        The producers property from the received JSONs people-node as list
      • getWriters

        public List<Movie.People> getWriters()
        Description copied from interface: Movie
        Get all objects of the {data.people.writers} JSON property in a list
        Specified by:
        getWriters in interface Movie
        Returns:
        The writers property from the received JSONs people-node as list
      • getReleaseDates

        public abstract List<Movie.ReleaseDate> getReleaseDates()
        Description copied from interface: Movie
        Get all objects of the {data.release_dates} JSON property in a list
        Specified by:
        getReleaseDates in interface Movie
        Returns:
        The release_dates property from the received JSON as list
      • getRemoteIds

        public abstract List<Movie.RemoteId> getRemoteIds()
        Description copied from interface: Movie
        Get all objects of the {data.remoteids} JSON property in a list
        Specified by:
        getRemoteIds in interface Movie
        Returns:
        The remoteids property from the received JSON as list