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