getBookmarks

abstract suspend fun getBookmarks(pageNumber: Int = DEFAULT_PAGE_NUM, pageSize: Int = DEFAULT_PAGE_SIZE, sortBy: SortByType = SortByType.TIMESTAMP, sortOrder: SortOrderType = SortOrderType.DESC): Result<List<BookmarksRecord>, Error>

Fetches, from the Bookmark Microservice, a collection of BookmarksRecord instances if successful.

Return

Result.Success with com.quickplay.vstb7.platform.model.MultiDataResponse containing a List of BookmarksRecord objects if the Bookmark Microservice call is successful or Result.Failure with Error object otherwise.

Parameters

pageNumber

number value that indicates the page to retrieve.

pageSize

number value that indicates the number of records to return in response

sortBy

specifies that the records are to be sorted by SortByType.TIMESTAMP (default).

sortOrder

specifies that the records are to be ordered by either SortOrderType.DESC (default) or SortOrderType.ASC