Class: EventsPage

EventsPage(items)

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) → {Object}

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() → {Promise.<Page>}

Fetch the next page if exists
Source:
Returns:
Type
Promise.<Page>

getPrev() → {Promise.<Page>}

Fetch the previous page if exists
Source:
Returns:
Type
Promise.<Page>

hasNext() → {Boolean}

Check if next page exists
Inherited From:
Source:
Returns:
Type
Boolean

hasPrev() → {Boolean}

Check if previous page exists
Inherited From:
Source:
Returns:
Type
Boolean