Package com.vonage.client.conversations
Class ListConversationsRequest
java.lang.Object
com.vonage.client.common.HalFilterRequest
com.vonage.client.conversations.ListConversationsRequest
- All Implemented Interfaces:
QueryParamsRequest
Filters results for
ConversationsClient.listConversations(ListConversationsRequest).-
Nested Class Summary
Nested Classes -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()Entry point for constructing an instance of this class.protected StringformatTimestamp(Instant time) The cursor to start returning results from.Filter records that occurred before this point in time.getOrder()Order to sort the results by.Number of results per page.Filter records that occurred after this point in time.Internal method for serializing the fields of this class into query parameters.protected IntegervalidatePageSize(Integer pageSize) Methods inherited from class com.vonage.client.common.HalFilterRequest
getPage, validatePage
-
Method Details
-
getStartDate
Description copied from class:HalFilterRequestFilter records that occurred after this point in time.- Overrides:
getStartDatein classHalFilterRequest- Returns:
- The start timestamp for results, or
nullif unspecified.
-
getEndDate
Description copied from class:HalFilterRequestFilter records that occurred before this point in time.- Overrides:
getEndDatein classHalFilterRequest- Returns:
- The end timestamp for results, or
nullif unspecified.
-
builder
Entry point for constructing an instance of this class.- Returns:
- A new Builder.
-
validatePageSize
- Overrides:
validatePageSizein classHalFilterRequest
-
formatTimestamp
-
getCursor
Description copied from class:HalFilterRequestThe cursor to start returning results from. This can be obtained from the URL in the relevant section fromHalPageResponse.getLinks().- Overrides:
getCursorin classHalFilterRequest- Returns:
- The page navigation cursor as a string, or
nullif unspecified.
-
makeParams
Description copied from interface:QueryParamsRequestInternal method for serializing the fields of this class into query parameters. The Map should be mutable so that subclasses can add fields, otherwise the method or implementing class should be marked asfinal. Duplicate entries can be handled by mapping the key to a list of the entries.- Specified by:
makeParamsin interfaceQueryParamsRequest- Overrides:
makeParamsin classHalFilterRequest- Returns:
- The query parameters as unique key-value pairs.
-
getPageSize
Description copied from class:HalFilterRequestNumber of results per page.- Overrides:
getPageSizein classHalFilterRequest- Returns:
- The page size as an integer, or
nullif not specified.
-
getOrder
Description copied from class:HalFilterRequestOrder to sort the results by.- Overrides:
getOrderin classHalFilterRequest- Returns:
- The result sort order as an enum, or
nullif not specified.
-