Package dev.reuss.tmdb.query
Class ChangesQuery
java.lang.Object
dev.reuss.tmdb.query.ChangesQuery
- All Implemented Interfaces:
PagedQuery<ChangesQuery>,TmdbQuery,Serializable
Query parameters for TMDB change endpoints.
The start and end date filters are optional. If both are set, the start date must not be after the end date and the range must not exceed 14 days.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChangesQuerycreate()Creates an empty changes query.Sets the inclusive end date filter.Sets the requested result page.Sets the inclusive start date filter.Converts this query to TMDB query parameters.
-
Method Details
-
create
Creates an empty changes query.- Returns:
- changes query
-
endDate
Sets the inclusive end date filter.- Parameters:
endDate- inclusive end date, ornull- Returns:
- this query
- Throws:
IllegalArgumentException- if the configured date range is invalid
-
page
Description copied from interface:PagedQuerySets the requested result page.- Specified by:
pagein interfacePagedQuery<ChangesQuery>- Parameters:
page- page number, starting at 1- Returns:
- the query instance
-
startDate
Sets the inclusive start date filter.- Parameters:
startDate- inclusive start date, ornull- Returns:
- this query
- Throws:
IllegalArgumentException- if the configured date range is invalid
-
toQueryParams
Converts this query to TMDB query parameters.- Specified by:
toQueryParamsin interfaceTmdbQuery- Returns:
- query parameters
-