DeleteMessageRequest

data class DeleteMessageRequest @JvmOverloads constructor(val messageId: String, val reason: String? = null)

Represents a request for deleting a given chat message from a chat room.

Sending this request to a chat room requires DELETE_MESSAGE capability in chat token. Otherwise server will respond with error code 403.

Parameters

messageId

Unique identifier of specific message

reason

The reason for performing delete action

Constructors

Link copied to clipboard
fun DeleteMessageRequest(messageId: String, reason: String? = null)

Constructs the request instance

Properties

Link copied to clipboard
@SerializedName(value = "Id")
val messageId: String

Unique identifier of specific message

Link copied to clipboard
val reason: String? = null

The reason for performing delete action

Link copied to clipboard
val requestId: String

Client-generated unique identifier (UUID) that will be used by the SDK to match response or error for given request.