BookmarksService

Provides Bookmark Microservice client access protocol (API)

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun deleteBookmark(contentId: String, episodeId: String? = null, mode: Mode? = null): Result<Unit, Error>

Deletes a bookmark instance for a given content identifier if successful.

Link copied to clipboard
abstract suspend fun getBookmark(contentId: String): Result<BookmarksRecord, Error>

Fetches a BookmarksRecord instance for a given content identifier if successful.

Link copied to clipboard
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.

Link copied to clipboard
abstract suspend fun getBookmarksCount(): Result<BookmarksCount, Error>

Fetches a count of all bookmark instances if successful.

Link copied to clipboard
abstract suspend fun getSeriesBookmarks(seriesIdentifier: String, pageNumber: Int = DEFAULT_PAGE_NUM, pageSize: Int = DEFAULT_PAGE_SIZE, sortBy: SortByType = SortByType.TIMESTAMP, sortOrder: SortOrderType = SortOrderType.DESC): Result<List<BookmarksRecord>, Error>

Fetches a collection of BookmarksRecord instances for a given series identifier if successful.

Link copied to clipboard
abstract suspend fun putBookmark(contentId: String, offset: Long, seasonId: String? = null, episodeId: String? = null, seasonNumber: Int? = null, episodeNumber: Int? = null, musicId: String? = null, mode: Mode? = null): Result<Unit, Error>

Inserts a bookmark instance for a given content identifier if successful.