Class MovieDTO.TranslationDTO
- java.lang.Object
-
- com.github.m0nk3y2k4.thetvdb.internal.api.impl.model.data.MovieDTO.TranslationDTO
-
- All Implemented Interfaces:
Movie.Translation
- Enclosing class:
- MovieDTO
@Immutable @WithHiddenImplementation public abstract static class MovieDTO.TranslationDTO extends Object implements Movie.Translation
DTO implementation of theMovie.Translationinterface
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.TranslationDTO.Builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMovieDTO.TranslationDTO.BuilderBuilder used to create a new immutableMovieDTO.TranslationDTOimplementation
-
Constructor Summary
Constructors Constructor Description TranslationDTO()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetLanguageCode()Get the value of the {data.translations.language_code} JSON propertyabstract BooleanisPrimary()Get the value of the {data.translations.is_primary} JSON propertyStringtoString()-
Methods inherited from interface com.github.m0nk3y2k4.thetvdb.api.model.data.Movie.Translation
getName, getOverview, getTagline
-
-
-
-
Method Detail
-
isPrimary
@Nullable public abstract Boolean isPrimary()
Description copied from interface:Movie.TranslationGet the value of the {data.translations.is_primary} JSON property- Specified by:
isPrimaryin interfaceMovie.Translation- Returns:
- The
is_primaryproperty from the received JSON
-
getLanguageCode
@Nullable public abstract String getLanguageCode()
Description copied from interface:Movie.TranslationGet the value of the {data.translations.language_code} JSON property- Specified by:
getLanguageCodein interfaceMovie.Translation- Returns:
- The
language_codeproperty from the received JSON
-
-