Constructors
Link copied to clipboard
public Draft Draft(@Json(name = "id" ) String id, @Json(name = "grant_id" ) String grantId, @Json(name = "from" ) List<EmailName> from, @Json(name = "date" ) Long date, @Json(name = "object" ) String obj, @Json(name = "bcc" ) List<EmailName> bcc, @Json(name = "cc" ) List<EmailName> cc, @Json(name = "reply_to" ) List<EmailName> replyTo, @Json(name = "snippet" ) String snippet, @Json(name = "subject" ) String subject, @Json(name = "thread_id" ) String threadId, @Json(name = "body" ) String body, @Json(name = "starred" ) Boolean starred, @Json(name = "unread" ) Boolean unread, @Json(name = "folders" ) List<String> folders, @Json(name = "to" ) List<EmailName> to, @Json(name = "created_at" ) Long createdAt, @Json(name = "attachments" ) List<Attachment> attachments)
Functions
Link copied to clipboard
An array of files attached to the message.
Link copied to clipboard
Unix timestamp of when the message was created.
Link copied to clipboard
The ID of the folder(s) the message appears in.
Link copied to clipboard
Grant ID of the Nylas account.
Link copied to clipboard
An array of name and email pairs that override the sent reply-to headers.
Link copied to clipboard
A short snippet of the message body. This is the first 100 characters of the message body, with any HTML tags removed.
Link copied to clipboard
Whether or not the message has been starred by the user.
Link copied to clipboard
The message subject.
Link copied to clipboard
A reference to the parent thread object. If this is a new draft, the thread will be empty.