Package com.vonage.client.conversations
Class ListUserConversationsRequest
java.lang.Object
com.vonage.client.common.HalFilterRequest
com.vonage.client.conversations.ListUserConversationsRequest
- All Implemented Interfaces:
QueryParamsRequest
Represents filter options for
ConversationsClient.listUserConversations(String, ListUserConversationsRequest).-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
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.Whether to include custom data in the responses.getOrder()Order to sort the results by.Determines how the results should be compared and ordered.Number of results per page.Filter records that occurred after this point in time.getState()Only include conversations with this member state.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
getEndDate, getPage, validatePage
-
Field Details
-
userId
-
-
Method Details
-
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- Returns:
- The query parameters as unique key-value pairs.
-
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.
-
getState
Only include conversations with this member state.- Returns:
- The state to filter by, or
nullif not specified.
-
getOrderBy
Determines how the results should be compared and ordered.- Returns:
- The result ordering strategy, or
nullif not specified.
-
getIncludeCustomData
Whether to include custom data in the responses.- Returns:
trueif custom data should be included, ornullif not specified.
-
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.
-
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.
-