Class MovieDTO.ArtworkDTO
- java.lang.Object
-
- com.github.m0nk3y2k4.thetvdb.internal.api.impl.model.data.MovieDTO.ArtworkDTO
-
- All Implemented Interfaces:
Movie.Artwork
- Enclosing class:
- MovieDTO
@Immutable @WithHiddenImplementation public abstract static class MovieDTO.ArtworkDTO extends Object implements Movie.Artwork
DTO implementation of theMovie.Artworkinterface
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.ArtworkDTO.Builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMovieDTO.ArtworkDTO.BuilderBuilder used to create a new immutableMovieDTO.ArtworkDTOimplementation
-
Constructor Summary
Constructors Constructor Description ArtworkDTO()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetArtworkType()Get the value of the {data.artworks.artwork_type} JSON propertyabstract StringgetThumbUrl()Get the value of the {data.artworks.thumb_url} JSON propertyabstract BooleanisPrimary()Get the value of the {data.artworks.is_primary} JSON propertyStringtoString()
-
-
-
Method Detail
-
getArtworkType
@Nullable public abstract String getArtworkType()
Description copied from interface:Movie.ArtworkGet the value of the {data.artworks.artwork_type} JSON property- Specified by:
getArtworkTypein interfaceMovie.Artwork- Returns:
- The
artwork_typeproperty from the received JSON
-
isPrimary
@Nullable public abstract Boolean isPrimary()
Description copied from interface:Movie.ArtworkGet the value of the {data.artworks.is_primary} JSON property- Specified by:
isPrimaryin interfaceMovie.Artwork- Returns:
- The
is_primaryproperty from the received JSON
-
getThumbUrl
@Nullable public abstract String getThumbUrl()
Description copied from interface:Movie.ArtworkGet the value of the {data.artworks.thumb_url} JSON property- Specified by:
getThumbUrlin interfaceMovie.Artwork- Returns:
- The
thumb_urlproperty from the received JSON
-
-