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 theMovie
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 correspondingMovieDTO.Builder
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MovieDTO.ArtworkDTO
DTO implementation of theMovie.Artwork
interfacestatic class
MovieDTO.Builder
Builder used to create a new immutableMovieDTO
implementationstatic class
MovieDTO.GenreDTO
DTO implementation of theMovie.Genre
interfacestatic class
MovieDTO.PeopleCategory
Simple enum representing the different categories of people associated with this moviestatic class
MovieDTO.PeopleDTO
DTO implementation of theMovie.People
interfacestatic class
MovieDTO.ReleaseDateDTO
DTO implementation of theMovie.ReleaseDate
interfacestatic class
MovieDTO.RemoteIdDTO
DTO implementation of theMovie.RemoteId
interfacestatic class
MovieDTO.TrailerDTO
DTO implementation of theMovie.Trailer
interfacestatic class
MovieDTO.TranslationDTO
DTO implementation of theMovie.Translation
interface-
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 listString
toString()
-
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:Movie
Get all objects of the {data.people.actors
} JSON property in a 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 interfaceMovie
- 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 interfaceMovie
- 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 interfaceMovie
- 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 interfaceMovie
- 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 interfaceMovie
- Returns:
- The
remoteids
property from the received JSON as list
-
-