Package com.amilesend.tvmaze.client.api
Class UpdatesApi
java.lang.Object
com.amilesend.tvmaze.client.api.ApiBase
com.amilesend.tvmaze.client.api.UpdatesApi
TVMaze API to retrieve database update information
For more information, please refer to https://www.tvmaze.com/api#updates
For more information, please refer to https://www.tvmaze.com/api#updates
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionUpdatesApi
(com.amilesend.client.connection.Connection connection) Creates a newUpdateApi
object. -
Method Summary
Modifier and TypeMethodDescriptiongetPersonUpdates
(UpdatesApi.Since since) Retrieves a map of persons in the TVMaze database and the corresponding last updated timestamp.getShowUpdates
(UpdatesApi.Since since) Retrieves a map of shows in the TVMaze database and the corresponding last updated timestamp.
-
Constructor Details
-
UpdatesApi
public UpdatesApi(com.amilesend.client.connection.Connection connection) Creates a newUpdateApi
object.- Parameters:
connection
- the connection
-
-
Method Details
-
getShowUpdates
Retrieves a map of shows in the TVMaze database and the corresponding last updated timestamp.- Parameters:
since
- specifies the time range limit to apply to the query. Note: can benull
for all tv shows- Returns:
- a map of updates with the key as the show identifier and the value as the last updated timestamp
-
getPersonUpdates
Retrieves a map of persons in the TVMaze database and the corresponding last updated timestamp.- Parameters:
since
- specifies the time range limit to apply to the query. Note: can benull
for all people- Returns:
- a map of updates with the key as the person identifier and the value as the last updated timestamp
-