Interface Movie.ReleaseDate
-
- All Known Implementing Classes:
MovieDTO.ReleaseDateDTO
- Enclosing interface:
- Movie
public static interface Movie.ReleaseDate
Interface representing a movies ReleaseDate data transfer object.
The methods of this class provide easy access to all release date 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 String
getCountry()
Get the value of the {data.release_dates.country
} JSON propertyString
getDate()
Get the value of the {data.release_dates.date
} JSON propertyString
getType()
Get the value of the {data.release_dates.type
} JSON property
-
-
-
Method Detail
-
getCountry
@Nullable String getCountry()
Get the value of the {data.release_dates.country
} JSON property- Returns:
- The
country
property from the received JSON
-
getDate
@Nullable String getDate()
Get the value of the {data.release_dates.date
} JSON property- Returns:
- The
date
property from the received JSON
-
-