Calendar

public final class Calendar

Class representation of a Nylas calendar object

Constructors

Link copied to clipboard
public Calendar Calendar(@Json(name = "id") String id, @Json(name = "grant_id") String grantId, @Json(name = "name") String name, @Json(name = "object") String obj, @Json(name = "timezone") String timezone, @Json(name = "read_only") Boolean readOnly, @Json(name = "is_owned_by_user") Boolean isOwnedByUser, @Json(name = "is_primary") Boolean isPrimary, @Json(name = "description") String description, @Json(name = "location") String location, @Json(name = "hex_color") String hexColor, @Json(name = "hex_foreground_color") String hexForegroundColor, @Json(name = "metadata") Map<String, String> metadata)

Properties

Link copied to clipboard
private final String description

Description of the calendar.

Link copied to clipboard
private final String grantId

Grant ID of the Nylas account.

Link copied to clipboard
private final String hexColor

The background color of the calendar in the hexadecimal format (e.g. #0099EE). Empty indicates default color.

Link copied to clipboard
private final String hexForegroundColor

The background color of the calendar in the hexadecimal format (e.g. #0099EE). Empty indicates default color. (Google only)

Link copied to clipboard
private final String id

Globally unique object identifier.

Link copied to clipboard
private final Boolean isOwnedByUser

If the calendar is owned by the user account.

Link copied to clipboard
private final Boolean isPrimary

If the calendar is the primary calendar.

Link copied to clipboard
private final String location

Geographic location of the calendar as free-form text.

Link copied to clipboard
private final Map<String, String> metadata

A list of key-value pairs storing additional data.

Link copied to clipboard
private final String name

Name of the Calendar.

Link copied to clipboard
private final Boolean readOnly

If the event participants are able to edit the event.

Link copied to clipboard
private final String timezone

IANA time zone database formatted string (e.g. America/New_York).

Functions

Link copied to clipboard
public final String getDescription()

Description of the calendar.

Link copied to clipboard
public final String getGrantId()

Grant ID of the Nylas account.

Link copied to clipboard
public final String getHexColor()

The background color of the calendar in the hexadecimal format (e.g. #0099EE). Empty indicates default color.

Link copied to clipboard

The background color of the calendar in the hexadecimal format (e.g. #0099EE). Empty indicates default color. (Google only)

Link copied to clipboard
public final String getId()

Globally unique object identifier.

Link copied to clipboard
public final String getLocation()

Geographic location of the calendar as free-form text.

Link copied to clipboard
public final Map<String, String> getMetadata()

A list of key-value pairs storing additional data.

Link copied to clipboard
public final String getName()

Name of the Calendar.

Link copied to clipboard
public final String getObject()

Get the type of object.

Link copied to clipboard
public final Boolean getReadOnly()

If the event participants are able to edit the event.

Link copied to clipboard
public final String getTimezone()

IANA time zone database formatted string (e.g. America/New_York).

Link copied to clipboard
public final Boolean isOwnedByUser()

If the calendar is owned by the user account.

Link copied to clipboard
public final Boolean isPrimary()

If the calendar is the primary calendar.