Interface Movie.Translation
-
- All Known Implementing Classes:
MovieDTO.TranslationDTO
- Enclosing interface:
- Movie
public static interface Movie.TranslationInterface representing a movies Translation data transfer object.
The methods of this class provide easy access to all translation related data which was returned by the remote service in JSON format. Please note that, as the remote service declares all of the properties to be optional, most of the methods are marked asNullable. Methods returning collection-based values however will return an empty collection in case no corresponding data was received.
The sole purpose of these DTO objects is to encapsulate the exact raw JSON data as received from the remote service in order to facilitate API integration by working with simple Java POJO's instead of nested JSON nodes. Although there will be no intense post-processing of the actual JSON values a type-casting may be applied to some of them to improve the usability and relieve the API user of this task.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetLanguageCode()Get the value of the {data.translations.language_code} JSON propertyStringgetName()Get the value of the {data.translations.name} JSON propertyStringgetOverview()Get the value of the {data.translations.overview} JSON propertyStringgetTagline()Get the value of the {data.translations.tagline} JSON propertyBooleanisPrimary()Get the value of the {data.translations.is_primary} JSON property
-
-
-
Method Detail
-
isPrimary
@Nullable Boolean isPrimary()
Get the value of the {data.translations.is_primary} JSON property- Returns:
- The
is_primaryproperty from the received JSON
-
getLanguageCode
@Nullable String getLanguageCode()
Get the value of the {data.translations.language_code} JSON property- Returns:
- The
language_codeproperty from the received JSON
-
getName
@Nullable String getName()
Get the value of the {data.translations.name} JSON property- Returns:
- The
nameproperty from the received JSON
-
getOverview
@Nullable String getOverview()
Get the value of the {data.translations.overview} JSON property- Returns:
- The
overviewproperty from the received JSON
-
-