Interface Movie.Artwork
-
- All Known Implementing Classes:
MovieDTO.ArtworkDTO
- Enclosing interface:
- Movie
public static interface Movie.ArtworkInterface representing a movies Artwork data transfer object.
The methods of this class provide easy access to all artwork 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 StringgetArtworkType()Get the value of the {data.artworks.artwork_type} JSON propertyLonggetHeight()Get the value of the {data.artworks.height} JSON propertyStringgetId()Get the value of the {data.artworks.id} JSON propertyStringgetTags()Get the value of the {data.artworks.tags} JSON propertyStringgetThumbUrl()Get the value of the {data.artworks.thumb_url} JSON propertyStringgetUrl()Get the value of the {data.artworks.url} JSON propertyLonggetWidth()Get the value of the {data.artworks.width} JSON propertyBooleanisPrimary()Get the value of the {data.artworks.is_primary} JSON property
-
-
-
Method Detail
-
getArtworkType
@Nullable String getArtworkType()
Get the value of the {data.artworks.artwork_type} JSON property- Returns:
- The
artwork_typeproperty from the received JSON
-
getHeight
@Nullable Long getHeight()
Get the value of the {data.artworks.height} JSON property- Returns:
- The
heightproperty from the received JSON
-
getId
@Nullable String getId()
Get the value of the {data.artworks.id} JSON property- Returns:
- The
idproperty from the received JSON
-
isPrimary
@Nullable Boolean isPrimary()
Get the value of the {data.artworks.is_primary} JSON property- Returns:
- The
is_primaryproperty from the received JSON
-
getTags
@Nullable String getTags()
Get the value of the {data.artworks.tags} JSON property- Returns:
- The
tagsproperty from the received JSON
-
getThumbUrl
@Nullable String getThumbUrl()
Get the value of the {data.artworks.thumb_url} JSON property- Returns:
- The
thumb_urlproperty from the received JSON
-
getUrl
@Nullable String getUrl()
Get the value of the {data.artworks.url} JSON property- Returns:
- The
urlproperty from the received JSON
-
-