Class UpdatesApi

java.lang.Object
com.amilesend.tvmaze.client.api.ApiBase
com.amilesend.tvmaze.client.api.UpdatesApi

public class UpdatesApi extends ApiBase
TVMaze API to retrieve database update information
For more information, please refer to https://www.tvmaze.com/api#updates
  • Constructor Details

    • UpdatesApi

      public UpdatesApi(com.amilesend.client.connection.Connection connection)
      Creates a new UpdateApi object.
      Parameters:
      connection - the connection
  • Method Details

    • getShowUpdates

      public Map<Integer,Long> getShowUpdates(UpdatesApi.Since since)
      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 be null 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

      public Map<Integer,Long> getPersonUpdates(UpdatesApi.Since since)
      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 be null for all people
      Returns:
      a map of updates with the key as the person identifier and the value as the last updated timestamp