Work with Paging

Use the Paging class to work with paging information, such as pagination on a list of files matching a search query or a list of access log entries.

Represents paging information, such as the page of records returned from a search query. Use Paging with SearchResult to work with results returned from a search query. See Slack's search.all method.

Paging Methods

The following are methods for Paging.

getCount()

Gets the number of records per page.

Signature

Return Value

Type: Integer

getIid()

Signature

Return Value

Type: String

getPage()

Gets the page of records returned.

Signature

Return Value

Type: Integer

getPages()

Gets the total number of pages matching the query.

Signature

Return Value

Type: Integer

getPerPage()

Signature

Return Value

Type: Integer

getSpill()

Signature

Return Value

Type: Integer

getTotal()

Signature

Return Value

Type: Integer

setCount(count)

Signature

Parameters

count

Type: Integer

Return Value

Type: void

setIid(iid)

Signature

Parameters

iid

Type: String

Return Value

Type: void

setPage(page)

Signature

Parameters

page

Type: Integer

Return Value

Type: void

setPages(pages)

Signature

Parameters

pages

Type: Integer

Return Value

Type: void

setPerPage(perPage)

Signature

Parameters

perPage

Type: Integer

Return Value

Type: void

setSpill(spill)

Signature

Parameters

spill

Type: Integer

Return Value

Type: void

setTotal(total)

Signature

Parameters

total

Type: Integer

Return Value

Type: void