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.Artwork
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.ArtworkDTO.Builder
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MovieDTO.ArtworkDTO.Builder
Builder used to create a new immutableMovieDTO.ArtworkDTO
implementation
-
Constructor Summary
Constructors Constructor Description ArtworkDTO()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract String
getArtworkType()
Get the value of the {data.artworks.artwork_type
} JSON propertyabstract String
getThumbUrl()
Get the value of the {data.artworks.thumb_url
} JSON propertyabstract Boolean
isPrimary()
Get the value of the {data.artworks.is_primary
} JSON propertyString
toString()
-
-
-
Method Detail
-
getArtworkType
@Nullable public abstract String getArtworkType()
Description copied from interface:Movie.Artwork
Get the value of the {data.artworks.artwork_type
} JSON property- Specified by:
getArtworkType
in interfaceMovie.Artwork
- Returns:
- The
artwork_type
property from the received JSON
-
isPrimary
@Nullable public abstract Boolean isPrimary()
Description copied from interface:Movie.Artwork
Get the value of the {data.artworks.is_primary
} JSON property- Specified by:
isPrimary
in interfaceMovie.Artwork
- Returns:
- The
is_primary
property from the received JSON
-
getThumbUrl
@Nullable public abstract String getThumbUrl()
Description copied from interface:Movie.Artwork
Get the value of the {data.artworks.thumb_url
} JSON property- Specified by:
getThumbUrl
in interfaceMovie.Artwork
- Returns:
- The
thumb_url
property from the received JSON
-
-