Package com.vonage.client.conversations
Class ListEventsRequest
java.lang.Object
com.vonage.client.common.HalFilterRequest
com.vonage.client.conversations.ListEventsRequest
- All Implemented Interfaces:
QueryParamsRequest
Filters results for
ConversationsClient.listEvents(String, ListEventsRequest).-
Nested Class Summary
Nested Classes -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ListEventsRequest.Builderbuilder()Entry point for constructing an instance of this class.protected StringformatTimestamp(Instant time) The cursor to start returning results from.getEndId()The ID to stop returning events at.The type of event to search for.Whether to exclude deleted events from the results.getOrder()Order to sort the results by.Number of results per page.The ID to start returning events at.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, getStartDate, validatePage
-
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.
-
getExcludeDeletedEvents
Whether to exclude deleted events from the results.- Returns:
trueto exclude deleted events, ornullif unspecified.
-
getStartId
The ID to start returning events at.- Returns:
- The start ID as an Integer, or
nullif unspecified.
-
getEndId
The ID to stop returning events at.- Returns:
- The end ID as an Integer, or
nullif unspecified.
-
getEventType
The type of event to search for. Does not currently support custom events.- Returns:
- The event type to search for, 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.
-
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.
-