BookmarksServiceImpl

class BookmarksServiceImpl(bookmarkEndPointURL: String, platformAuthorizer: PlatformAuthorizer) : BookmarksService

Concrete implementation of BookmarksService interface.

Parameters

bookmarkEndPointURL

the URL to Bookmark Microservice end point.

platformAuthorizer

PlatformAuthorizer instance to authorize Bookmark Microservice access.

Constructors

Link copied to clipboard
constructor(bookmarkEndPointURL: String, platformAuthorizer: PlatformAuthorizer)

Creates BookmarksService instance.

Functions

Link copied to clipboard
open suspend override fun deleteBookmark(contentId: String, episodeId: String?, mode: Mode?): Result<Unit, Error>
Link copied to clipboard
open suspend override fun getBookmark(contentId: String): Result<BookmarksRecord, Error>
Link copied to clipboard
open suspend override fun getBookmarks(pageNumber: Int, pageSize: Int, sortBy: SortByType, sortOrder: SortOrderType): Result<List<BookmarksRecord>, Error>
Link copied to clipboard
open suspend override fun getBookmarksCount(): Result<BookmarksCount, Error>
Link copied to clipboard
open suspend override fun getSeriesBookmarks(seriesIdentifier: String, pageNumber: Int, pageSize: Int, sortBy: SortByType, sortOrder: SortOrderType): Result<List<BookmarksRecord>, Error>
Link copied to clipboard
open suspend override fun putBookmark(contentId: String, offset: Long, seasonId: String?, episodeId: String?, seasonNumber: Int?, episodeNumber: Int?, musicId: String?, mode: Mode?): Result<Unit, Error>