FlagMessage

data class FlagMessage(val message: Message, val reason: String?, val customData: Map<String, String>, val resultHandler: (Result<Flag>) -> Unit = { }) : MessageListViewModel.Event

When the user flags a message.

Parameters

message

The message to be flagged.

resultHandler

Lambda function that handles the result of the operation. e.g. if the message was successfully flagged or not.

Constructors

Link copied to clipboard
constructor(message: Message, reason: String?, customData: Map<String, String>, resultHandler: (Result<Flag>) -> Unit = { })

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resultHandler: (Result<Flag>) -> Unit