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 newUpdateApiobject. -
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 newUpdateApiobject.- 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 benullfor 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 benullfor all people- Returns:
- a map of updates with the key as the person identifier and the value as the last updated timestamp
-