MediaCommentator

Functions

Link copied to clipboard
abstract suspend fun createComment(mediaId: Long, message: String)

Create new comment with message for media with mediaId.

Link copied to clipboard
abstract fun createCommentsFlow(mediaId: Long): Flow<List<CommentItem>>
Link copied to clipboard
abstract suspend fun deleteComment(commentId: Long)

Deletes existent comment with commentId.

Link copied to clipboard
abstract suspend fun deleteDraft(mediaId: Long)

Delete draft message for media by mediaId

Link copied to clipboard
abstract suspend fun editComment(commentId: Long, message: String)

Edits existent comment with new message for comment with commentId.

Link copied to clipboard
abstract suspend fun fetchComments(mediaId: Long)

Gets all comments for media with mediaId.

Link copied to clipboard
abstract suspend fun getDraft(mediaId: Long): String?

Get draft message for media by mediaId

Link copied to clipboard
abstract suspend fun saveDraft(mediaId: Long, message: String)

Save draft message for media by mediaId