Message

@Serializable
data class Message(val inboxId: String, val threadId: String, val messageId: String, val labels: List<String> = emptyList(), val timestamp: Instant, val from: String, 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 inReplyTo: String? = null, val references: List<String> = emptyList(), val headers: Map<String, String> = emptyMap(), val size: Int, val updatedAt: Instant, val createdAt: Instant)

Represents a complete email message with headers, body, attachments, and metadata.

Constructors

Link copied to clipboard
constructor(inboxId: String, threadId: String, messageId: String, labels: List<String> = emptyList(), timestamp: Instant, from: String, 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(), inReplyTo: String? = null, references: List<String> = emptyList(), headers: Map<String, String> = emptyMap(), size: Int, 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
Link copied to clipboard
Link copied to clipboard
val html: String?
Link copied to clipboard
@SerialName(value = "inbox_id")
val inboxId: String
Link copied to clipboard
@SerialName(value = "in_reply_to")
val inReplyTo: String?
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "message_id")
val messageId: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val size: Int
Link copied to clipboard
Link copied to clipboard
val text: String?
Link copied to clipboard
@SerialName(value = "thread_id")
val threadId: String
Link copied to clipboard
Link copied to clipboard
val to: List<String>
Link copied to clipboard
@SerialName(value = "updated_at")
val updatedAt: Instant