Thread

@Serializable
data class Thread(val inboxId: String, val threadId: String, val labels: List<String> = emptyList(), val timestamp: Instant, val receivedTimestamp: Instant? = null, val sentTimestamp: Instant? = null, val senders: List<String> = emptyList(), val recipients: List<String> = emptyList(), val subject: String? = null, val preview: String? = null, val attachments: List<Attachment> = emptyList(), val lastMessageId: String, val messageCount: Int, val size: Int, val updatedAt: Instant, val createdAt: Instant)

Represents an email thread with participants, subject, message count, and attachments.

Constructors

Link copied to clipboard
constructor(inboxId: String, threadId: String, labels: List<String> = emptyList(), timestamp: Instant, receivedTimestamp: Instant? = null, sentTimestamp: Instant? = null, senders: List<String> = emptyList(), recipients: List<String> = emptyList(), subject: String? = null, preview: String? = null, attachments: List<Attachment> = emptyList(), lastMessageId: String, messageCount: Int, size: Int, updatedAt: Instant, createdAt: Instant)

Properties

Link copied to clipboard
Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Instant
Link copied to clipboard
@SerialName(value = "inbox_id")
val inboxId: String
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "last_message_id")
val lastMessageId: String
Link copied to clipboard
@SerialName(value = "message_count")
val messageCount: Int
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "received_timestamp")
val receivedTimestamp: Instant?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "sent_timestamp")
val sentTimestamp: Instant?
Link copied to clipboard
val size: Int
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "thread_id")
val threadId: String
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "updated_at")
val updatedAt: Instant