Class MovieDTO
- java.lang.Object
-
- com.github.m0nk3y2k4.thetvdb.internal.api.impl.model.data.MovieDTO
-
- All Implemented Interfaces:
Movie
@Immutable @WithHiddenImplementation public abstract class MovieDTO extends Object implements Movie
DTO implementation of theMovieinterface
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 correspondingMovieDTO.Builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMovieDTO.ArtworkDTODTO implementation of theMovie.Artworkinterfacestatic classMovieDTO.BuilderBuilder used to create a new immutableMovieDTOimplementationstatic classMovieDTO.GenreDTODTO implementation of theMovie.Genreinterfacestatic classMovieDTO.PeopleCategorySimple enum representing the different categories of people associated with this moviestatic classMovieDTO.PeopleDTODTO implementation of theMovie.Peopleinterfacestatic classMovieDTO.ReleaseDateDTODTO implementation of theMovie.ReleaseDateinterfacestatic classMovieDTO.RemoteIdDTODTO implementation of theMovie.RemoteIdinterfacestatic classMovieDTO.TrailerDTODTO implementation of theMovie.Trailerinterfacestatic classMovieDTO.TranslationDTODTO implementation of theMovie.Translationinterface-
Nested classes/interfaces inherited from interface com.github.m0nk3y2k4.thetvdb.api.model.data.Movie
Movie.Artwork, Movie.Genre, Movie.People, Movie.ReleaseDate, Movie.RemoteId, Movie.Trailer, Movie.Translation
-
-
Constructor Summary
Constructors Constructor Description MovieDTO()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<Movie.People>getActors()Get all objects of the {data.people.actors} JSON property in a listList<Movie.People>getDirectors()Get all objects of the {data.people.directors} JSON property in a listList<Movie.People>getProducers()Get all objects of the {data.people.producers} JSON property in a listabstract List<Movie.ReleaseDate>getReleaseDates()Get all objects of the {data.release_dates} JSON property in a listabstract List<Movie.RemoteId>getRemoteIds()Get all objects of the {data.remoteids} JSON property in a listList<Movie.People>getWriters()Get all objects of the {data.people.writers} JSON property in a listStringtoString()-
Methods inherited from interface com.github.m0nk3y2k4.thetvdb.api.model.data.Movie
getArtworks, getGenres, getId, getRuntime, getTrailers, getTranslations, getUrl
-
-
-
-
Method Detail
-
getActors
public List<Movie.People> getActors()
Description copied from interface:MovieGet all objects of the {data.people.actors} JSON property in a list
-
getDirectors
public List<Movie.People> getDirectors()
Description copied from interface:MovieGet all objects of the {data.people.directors} JSON property in a list- Specified by:
getDirectorsin interfaceMovie- Returns:
- The
directorsproperty from the received JSONs people-node as list
-
getProducers
public List<Movie.People> getProducers()
Description copied from interface:MovieGet all objects of the {data.people.producers} JSON property in a list- Specified by:
getProducersin interfaceMovie- Returns:
- The
producersproperty from the received JSONs people-node as list
-
getWriters
public List<Movie.People> getWriters()
Description copied from interface:MovieGet all objects of the {data.people.writers} JSON property in a list- Specified by:
getWritersin interfaceMovie- Returns:
- The
writersproperty from the received JSONs people-node as list
-
getReleaseDates
public abstract List<Movie.ReleaseDate> getReleaseDates()
Description copied from interface:MovieGet all objects of the {data.release_dates} JSON property in a list- Specified by:
getReleaseDatesin interfaceMovie- Returns:
- The
release_datesproperty from the received JSON as list
-
getRemoteIds
public abstract List<Movie.RemoteId> getRemoteIds()
Description copied from interface:MovieGet all objects of the {data.remoteids} JSON property in a list- Specified by:
getRemoteIdsin interfaceMovie- Returns:
- The
remoteidsproperty from the received JSON as list
-
-