Interface Movie.RemoteId
-
- All Known Implementing Classes:
MovieDTO.RemoteIdDTO
- Enclosing interface:
- Movie
public static interface Movie.RemoteIdInterface representing a movies RemoteId data transfer object.
The methods of this class provide easy access to all remote ID 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 StringgetId()Get the value of the {data.remoteids.id} JSON propertyLonggetSourceId()Get the value of the {data.remoteids.source_id} JSON propertyStringgetSourceName()Get the value of the {data.remoteids.source_name} JSON propertyStringgetSourceUrl()Get the value of the {data.remoteids.source_url} JSON propertyStringgetUrl()Get the value of the {data.remoteids.url} JSON property
-
-
-
Method Detail
-
getId
@Nullable String getId()
Get the value of the {data.remoteids.id} JSON property- Returns:
- The
idproperty from the received JSON
-
getSourceId
@Nullable Long getSourceId()
Get the value of the {data.remoteids.source_id} JSON property- Returns:
- The
source_idproperty from the received JSON
-
getSourceName
@Nullable String getSourceName()
Get the value of the {data.remoteids.source_name} JSON property- Returns:
- The
source_nameproperty from the received JSON
-
getSourceUrl
@Nullable String getSourceUrl()
Get the value of the {data.remoteids.source_url} JSON property- Returns:
- The
source_urlproperty from the received JSON
-
-