Thread

public final class Thread

Constructors

Link copied to clipboard
public Thread Thread(@Json(name = "id") String id, @Json(name = "grant_id") String grantId, @Json(name = "object") String obj, @Json(name = "latest_draft_or_message") IMessage latestDraftOrMessage, @Json(name = "has_attachments") Boolean hasAttachments, @Json(name = "has_drafts") Boolean hasDrafts, @Json(name = "starred") Boolean starred, @Json(name = "unread") Boolean unread, @Json(name = "earliest_message_date") Long earliestMessageDate, @Json(name = "latest_message_received_date") Long latestMessageReceivedDate, @Json(name = "latest_message_sent_date") Long latestMessageSentDate, @Json(name = "participants") List<EmailName> participants, @Json(name = "message_ids") List<String> messageIds, @Json(name = "draft_ids") List<String> draftIds, @Json(name = "folders") List<String> folders, @Json(name = "snippet") String snippet, @Json(name = "subject") String subject)

Properties

Link copied to clipboard
private final List<String> draftIds

An array of draft IDs in the thread.

Link copied to clipboard
private final Long earliestMessageDate

Unix timestamp of the earliest or first message in the thread.

Link copied to clipboard
private final List<String> folders

An array of folder IDs the thread appears in.

Link copied to clipboard
private final String grantId

Grant ID of the Nylas account.

Link copied to clipboard
private final Boolean hasAttachments

Whether or not a message in a thread has attachments.

Link copied to clipboard
private final Boolean hasDrafts

Whether or not a message in a thread has drafts.

Link copied to clipboard
private final String id

The unique identifier for the thread.

Link copied to clipboard

The latest message or draft in the thread.

Link copied to clipboard

Unix timestamp of the most recent message received in the thread.

Link copied to clipboard

Unix timestamp of the most recent message sent in the thread.

Link copied to clipboard
private final List<String> messageIds

An array of message IDs in the thread.

Link copied to clipboard
private final String obj

The type of object.

Link copied to clipboard
private final List<EmailName> participants

An array of participants in the thread.

Link copied to clipboard
private final String snippet

A short snippet of the last received message/draft body. This is the first 100 characters of the message body, with any HTML tags removed.

Link copied to clipboard
private final Boolean starred

A boolean indicating whether the thread is starred or not.

Link copied to clipboard
private final String subject

The subject line of the thread.

Link copied to clipboard
private final Boolean unread

A boolean indicating if all messages within the thread are read or not.

Functions

Link copied to clipboard
public final List<String> getDraftIds()

An array of draft IDs in the thread.

Link copied to clipboard

Unix timestamp of the earliest or first message in the thread.

Link copied to clipboard
public final List<String> getFolders()

An array of folder IDs the thread appears in.

Link copied to clipboard
public final String getGrantId()

Grant ID of the Nylas account.

Link copied to clipboard
public final Boolean getHasAttachments()

Whether or not a message in a thread has attachments.

Link copied to clipboard
public final Boolean getHasDrafts()

Whether or not a message in a thread has drafts.

Link copied to clipboard
public final String getId()

The unique identifier for the thread.

Link copied to clipboard

The latest message or draft in the thread.

Link copied to clipboard

Unix timestamp of the most recent message received in the thread.

Link copied to clipboard

Unix timestamp of the most recent message sent in the thread.

Link copied to clipboard
public final List<String> getMessageIds()

An array of message IDs in the thread.

Link copied to clipboard
public final String getObj()

The type of object.

Link copied to clipboard
public final String getObject()

Get the type of object.

Link copied to clipboard
public final List<EmailName> getParticipants()

An array of participants in the thread.

Link copied to clipboard
public final String getSnippet()

A short snippet of the last received message/draft body. This is the first 100 characters of the message body, with any HTML tags removed.

Link copied to clipboard
public final Boolean getStarred()

A boolean indicating whether the thread is starred or not.

Link copied to clipboard
public final String getSubject()

The subject line of the thread.

Link copied to clipboard
public final Boolean getUnread()

A boolean indicating if all messages within the thread are read or not.