new EventsPage(items)
A Events Page
Parameters:
Name | Type | Description |
---|---|---|
items |
Map | map of events fetched in the paginated query |
- Source:
Extends
Methods
-
_getConfig(cursor)
-
Create config params for paginationRequest
Parameters:
Name Type Description cursor
string cursor parameter to access the next or previous page of a data set
- Inherited From:
- Source:
Returns:
- Type
- Object
-
_getError()
-
Create a nexmoClientError when page does not exist
- Inherited From:
- Source:
-
getNext()
-
Fetch the next page if exists
- Source:
Returns:
- Type
- Promise.<Page>
-
getPrev()
-
Fetch the previous page if exists
- Source:
Returns:
- Type
- Promise.<Page>
-
hasNext()
-
Check if next page exists
- Inherited From:
- Source:
Returns:
- Type
- Boolean
-
hasPrev()
-
Check if previous page exists
- Inherited From:
- Source:
Returns:
- Type
- Boolean