Interface Movie.People
-
- All Known Implementing Classes:
MovieDTO.PeopleDTO
- Enclosing interface:
- Movie
public static interface Movie.People
Interface representing a movies People data transfer object.
The methods of this class provide easy access to all people 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
getId()
Get the value of the {data.people.<actors|directors|producers|writers>.id
} JSON propertyString
getImdbId()
Get the value of the {data.people.<actors|directors|producers|writers>.imdb_id
} JSON propertyString
getName()
Get the value of the {data.people.<actors|directors|producers|writers>.name
} JSON propertyString
getPeopleFacebook()
Get the value of the {data.people.<actors|directors|producers|writers>.people_facebook
} JSON propertyString
getPeopleId()
Get the value of the {data.people.<actors|directors|producers|writers>.people_id
} JSON propertyString
getPeopleImage()
Get the value of the {data.people.<actors|directors|producers|writers>.people_image
} JSON propertyString
getPeopleInstagram()
Get the value of the {data.people.<actors|directors|producers|writers>.people_instagram
} JSON propertyString
getPeopleTwitter()
Get the value of the {data.people.<actors|directors|producers|writers>.people_twitter
} JSON propertyString
getRole()
Get the value of the {data.people.<actors|directors|producers|writers>.role
} JSON propertyString
getRoleImage()
Get the value of the {data.people.<actors|directors|producers|writers>.role_image
} JSON propertyBoolean
isFeatured()
Get the value of the {data.people.<actors|directors|producers|writers>.is_featured
} JSON property
-
-
-
Method Detail
-
getId
@Nullable String getId()
Get the value of the {data.people.<actors|directors|producers|writers>.id
} JSON property- Returns:
- The
id
property from the received JSON
-
getImdbId
@Nullable String getImdbId()
Get the value of the {data.people.<actors|directors|producers|writers>.imdb_id
} JSON property- Returns:
- The
imdb_id
property from the received JSON
-
isFeatured
@Nullable Boolean isFeatured()
Get the value of the {data.people.<actors|directors|producers|writers>.is_featured
} JSON property- Returns:
- The
is_featured
property from the received JSON
-
getName
@Nullable String getName()
Get the value of the {data.people.<actors|directors|producers|writers>.name
} JSON property- Returns:
- The
name
property from the received JSON
-
getPeopleFacebook
@Nullable String getPeopleFacebook()
Get the value of the {data.people.<actors|directors|producers|writers>.people_facebook
} JSON property- Returns:
- The
people_facebook
property from the received JSON
-
getPeopleId
@Nullable String getPeopleId()
Get the value of the {data.people.<actors|directors|producers|writers>.people_id
} JSON property- Returns:
- The
people_id
property from the received JSON
-
getPeopleImage
@Nullable String getPeopleImage()
Get the value of the {data.people.<actors|directors|producers|writers>.people_image
} JSON property- Returns:
- The
people_image
property from the received JSON
-
getPeopleInstagram
@Nullable String getPeopleInstagram()
Get the value of the {data.people.<actors|directors|producers|writers>.people_instagram
} JSON property- Returns:
- The
people_instagram
property from the received JSON
-
getPeopleTwitter
@Nullable String getPeopleTwitter()
Get the value of the {data.people.<actors|directors|producers|writers>.people_twitter
} JSON property- Returns:
- The
people_twitter
property from the received JSON
-
getRole
@Nullable String getRole()
Get the value of the {data.people.<actors|directors|producers|writers>.role
} JSON property- Returns:
- The
role
property from the received JSON
-
-