AmityCommentRepository

Functions

Link copied to clipboard

Initiates a function chain to create a comment.

Link copied to clipboard

Initiates a function chain to edit a comment.

Link copied to clipboard
fun flagComment(commentId: String): Completable

flags a comment

Link copied to clipboard
fun getComment(commentId: String): Flowable<AmityComment>

Gets a LiveObject of comment

Link copied to clipboard
fun getCommentByIds(commentIds: Set<String>): Flowable<List<AmityComment>>

Gets a LiveCollection of comments

Link copied to clipboard

Initiates a function chain to query for comments.

Link copied to clipboard

Initiates a function chain to query for latest comments.

Link copied to clipboard
Link copied to clipboard
fun hardDeleteComment(commentId: String): Completable

hard deletes a comment

Link copied to clipboard
fun isCommentFlaggedByMe(commentId: String): Single<Boolean>
Link copied to clipboard
fun softDeleteComment(commentId: String): Completable

soft deletes a comment

Link copied to clipboard
fun unflagComment(commentId: String): Completable

unflags a comment

Link copied to clipboard

Initiates a function chain to update a comment.