Thread

public final class Thread

Constructors

Link copied to clipboard
public Thread Thread(String id, String grantId, String obj, IMessage latestDraftOrMessage, Boolean hasAttachments, Boolean hasDrafts, Boolean starred, Boolean unread, Long earliestMessageDate, Long latestMessageReceivedDate, Long latestMessageSentDate, List<EmailName> participants, List<String> messageIds, List<String> draftIds, List<String> folders, String snippet, 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.