Interface Actor
-
- All Known Implementing Classes:
ActorDTO
public interface ActorInterface representing an Actor data transfer object.
The methods of this class provide easy access to all actor 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 LonggetId()Get the value of the {data.id} JSON propertyStringgetImage()Get the value of the {data.image} JSON propertyStringgetImageAdded()Get the value of the {data.imageAdded} JSON propertyLonggetImageAuthor()Get the value of the {data.imageAuthor} JSON propertyStringgetLastUpdated()Get the value of the {data.lastUpdated} JSON propertyStringgetName()Get the value of the {data.name} JSON propertyStringgetRole()Get the value of the {data.role} JSON propertyLonggetSeriesId()Get the value of the {data.seriesId} JSON propertyLonggetSortOrder()Get the value of the {data.sortOrder} JSON property
-
-
-
Method Detail
-
getId
@Nullable Long getId()
Get the value of the {data.id} JSON property- Returns:
- The
idproperty from the received JSON
-
getImage
@Nullable String getImage()
Get the value of the {data.image} JSON property- Returns:
- The
imageproperty from the received JSON
-
getImageAdded
@Nullable String getImageAdded()
Get the value of the {data.imageAdded} JSON property- Returns:
- The
imageAddedproperty from the received JSON
-
getImageAuthor
@Nullable Long getImageAuthor()
Get the value of the {data.imageAuthor} JSON property- Returns:
- The
imageAuthorproperty from the received JSON
-
getLastUpdated
@Nullable String getLastUpdated()
Get the value of the {data.lastUpdated} JSON property- Returns:
- The
lastUpdatedproperty from the received JSON
-
getName
@Nullable String getName()
Get the value of the {data.name} JSON property- Returns:
- The
nameproperty from the received JSON
-
getRole
@Nullable String getRole()
Get the value of the {data.role} JSON property- Returns:
- The
roleproperty from the received JSON
-
getSeriesId
@Nullable Long getSeriesId()
Get the value of the {data.seriesId} JSON property- Returns:
- The
seriesIdproperty from the received JSON
-
-