UserDraft

interface UserDraft

Describes a user draft: REGULAR: draft of a classical message QUOTE: draft of a message which quotes another message EDIT: draft of an edition of a message REPLY: draft of a reply of another message.

Types

Link copied to clipboard
data class Edit(val linkedEventId: String, val content: String) : UserDraft
Link copied to clipboard
data class Quote(val linkedEventId: String, val content: String) : UserDraft
Link copied to clipboard
data class Regular(val content: String) : UserDraft
Link copied to clipboard
data class Reply(val linkedEventId: String, val content: String) : UserDraft
Link copied to clipboard
data class Voice(val content: String) : UserDraft

Functions

Link copied to clipboard
open fun isValid(): Boolean

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard