Folder

public final class Folder

Class representation of the Nylas folder response.

Constructors

Link copied to clipboard
public Folder Folder(@Json(name = "id") String id, @Json(name = "grant_id") String grantId, @Json(name = "name") String name, @Json(name = "object") String obj, @Json(name = "parent_id") String parentId, @Json(name = "background_color") String backgroundColor, @Json(name = "text_color") String textColor, @Json(name = "system_folder") Boolean systemFolder, @Json(name = "child_count") Integer childCount, @Json(name = "unread_count") Integer unreadCount, @Json(name = "total_count") Integer totalCount, @Json(name = "attributes") List<String> attributes)

Properties

Link copied to clipboard
private final List<String> attributes

Common attribute descriptors shared by system folders across providers. For example, Sent email folders have the ["\\Sent"] attribute. For IMAP grants, IMAP providers provide the attributes. For Google and Microsoft Graph, Nylas matches system folders to a set of common attributes.

Link copied to clipboard
private final String backgroundColor

Folder background color. (Google only)

Link copied to clipboard
private final Integer childCount

The number of immediate child folders in the current folder. (Microsoft only)

Link copied to clipboard
private final String grantId

A Grant ID of the Nylas account.

Link copied to clipboard
private final String id

A globally unique object identifier.

Link copied to clipboard
private final String name

Folder name

Link copied to clipboard
private final String obj

The type of object.

Link copied to clipboard
private final String parentId

ID of the parent folder. (Microsoft only)

Link copied to clipboard
private final Boolean systemFolder

Indicates if the folder is user created or system created. (Google Only)

Link copied to clipboard
private final String textColor

Folder text color. (Google only)

Link copied to clipboard
private final Integer totalCount

The number of items inside of a folder.

Link copied to clipboard
private final Integer unreadCount

The number of unread items inside of a folder.

Functions

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

Common attribute descriptors shared by system folders across providers. For example, Sent email folders have the ["\\Sent"] attribute. For IMAP grants, IMAP providers provide the attributes. For Google and Microsoft Graph, Nylas matches system folders to a set of common attributes.

Link copied to clipboard
public final String getBackgroundColor()

Folder background color. (Google only)

Link copied to clipboard
public final Integer getChildCount()

The number of immediate child folders in the current folder. (Microsoft only)

Link copied to clipboard
public final String getGrantId()

A Grant ID of the Nylas account.

Link copied to clipboard
public final String getId()

A globally unique object identifier.

Link copied to clipboard
public final String getName()

Folder name

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 String getParentId()

ID of the parent folder. (Microsoft only)

Link copied to clipboard
public final Boolean getSystemFolder()

Indicates if the folder is user created or system created. (Google Only)

Link copied to clipboard
public final String getTextColor()

Folder text color. (Google only)

Link copied to clipboard
public final Integer getTotalCount()

The number of items inside of a folder.

Link copied to clipboard
public final Integer getUnreadCount()

The number of unread items inside of a folder.