HistoryItemsPage.Success

interface HistoryItemsPage.Success : HistoryItemsPage


Represents a successful fetch of a history items page.

Summary

Public functions

suspend HistoryItemsPage

Returns the next page of history items.

Public properties

Boolean

Whether this is the last page of the history items.

String

Internal holder for the current filter.

String

Internal holder for the next page token.

List<HistoryItem>

The list of history items.

Public functions

loadNext

suspend fun loadNext(): HistoryItemsPage

Returns the next page of history items. If there are no more pages, returns an error page with HomeException with code HomeException.Codes.HISTORY_API_ERROR and SubErrorCodes.HistoryApi.END_OF_PAGINATION.

Public properties

endOfPagination

val endOfPaginationBoolean

Whether this is the last page of the history items.

filter

val filterString

Internal holder for the current filter.

nextPageToken

val nextPageTokenString

Internal holder for the next page token.

result

val resultList<HistoryItem>

The list of history items.