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