Interface Movie.Artwork
-
- All Known Implementing Classes:
MovieDTO.ArtworkDTO
- Enclosing interface:
- Movie
public static interface Movie.Artwork
Interface 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 String
getArtworkType()
Get the value of the {data.artworks.artwork_type
} JSON propertyLong
getHeight()
Get the value of the {data.artworks.height
} JSON propertyString
getId()
Get the value of the {data.artworks.id
} JSON propertyString
getTags()
Get the value of the {data.artworks.tags
} JSON propertyString
getThumbUrl()
Get the value of the {data.artworks.thumb_url
} JSON propertyString
getUrl()
Get the value of the {data.artworks.url
} JSON propertyLong
getWidth()
Get the value of the {data.artworks.width
} JSON propertyBoolean
isPrimary()
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_type
property from the received JSON
-
getHeight
@Nullable Long getHeight()
Get the value of the {data.artworks.height
} JSON property- Returns:
- The
height
property from the received JSON
-
getId
@Nullable String getId()
Get the value of the {data.artworks.id
} JSON property- Returns:
- The
id
property from the received JSON
-
isPrimary
@Nullable Boolean isPrimary()
Get the value of the {data.artworks.is_primary
} JSON property- Returns:
- The
is_primary
property from the received JSON
-
getTags
@Nullable String getTags()
Get the value of the {data.artworks.tags
} JSON property- Returns:
- The
tags
property from the received JSON
-
getThumbUrl
@Nullable String getThumbUrl()
Get the value of the {data.artworks.thumb_url
} JSON property- Returns:
- The
thumb_url
property from the received JSON
-
getUrl
@Nullable String getUrl()
Get the value of the {data.artworks.url
} JSON property- Returns:
- The
url
property from the received JSON
-
-