Package com.vonage.client.common
Class HalPageResponse
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.common.HalPageResponse
- All Implemented Interfaces:
Jsonable
- Direct Known Subclasses:
ApplicationList,ListConversationsResponse,ListEventsResponse,ListItemsResponse,ListListsResponse,ListMembersResponse,ListSecretsResponse,ListTemplateFragmentsResponse,ListTemplatesResponse,ListUserConversationsResponse,ListUsersResponse
Abstract base class for responses that conform to the
HAL specification.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Field Details
-
page
-
pageSize
-
totalItems
-
totalPages
-
-
Constructor Details
-
HalPageResponse
public HalPageResponse()
-
-
Method Details
-
getPage
Current page.- Returns:
- The current page number, or
nullif not applicable.
-
getPageSize
Size of each page.- Returns:
- Number of results per page, or
nullif not applicable.
-
getTotalItems
Size of this page.- Returns:
- Number of results on this page, or
nullif not applicable.
-
getTotalPages
Number of results pages.- Returns:
- Total number of available pages, or
nullif not applicable.
-
getLinks
The_linksproperty in the HAL response.- Returns:
- Navigation links wrapped in an object, or
nullif not applicable.
-