Draft

@Serializable
data class Draft(val inboxId: String, val draftId: String, val labels: List<String> = emptyList(), val timestamp: Instant, val from: String? = null, val to: List<String> = emptyList(), val cc: List<String> = emptyList(), val bcc: List<String> = emptyList(), val subject: String? = null, val preview: String? = null, val text: String? = null, val html: String? = null, val attachments: List<Attachment> = emptyList(), val updatedAt: Instant, val createdAt: Instant)

Represents an email draft with recipients, subject, body content, and attachments.

Constructors

Link copied to clipboard
constructor(inboxId: String, draftId: String, labels: List<String> = emptyList(), timestamp: Instant, from: String? = null, to: List<String> = emptyList(), cc: List<String> = emptyList(), bcc: List<String> = emptyList(), subject: String? = null, preview: String? = null, text: String? = null, html: String? = null, attachments: List<Attachment> = emptyList(), updatedAt: Instant, createdAt: Instant)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val cc: List<String>
Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Instant
Link copied to clipboard
@SerialName(value = "draft_id")
val draftId: String
Link copied to clipboard
val from: String?
Link copied to clipboard
val html: String?
Link copied to clipboard
@SerialName(value = "inbox_id")
val inboxId: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val text: String?
Link copied to clipboard
Link copied to clipboard
val to: List<String>
Link copied to clipboard
@SerialName(value = "updated_at")
val updatedAt: Instant