GetAvailabilityRequest

public final class GetAvailabilityRequest

Class representation of a Nylas get availability request

Constructors

Link copied to clipboard
public GetAvailabilityRequest GetAvailabilityRequest(@Json(name = "start_time") Integer startTime, @Json(name = "end_time") Integer endTime, @Json(name = "participants") List<AvailabilityParticipant> participants, @Json(name = "duration_minutes") Integer durationMinutes, @Json(name = "interval_minutes") Integer intervalMinutes, @Json(name = "round_to_30_minutes") Boolean roundTo30Minutes, @Json(name = "availability_rules") AvailabilityRules availabilityRules)

Types

Link copied to clipboard
public final class Builder

A builder for creating a GetAvailabilityRequest.

Properties

Link copied to clipboard

The rules to apply when checking availability.

Link copied to clipboard
private final Integer durationMinutes

The total number of minutes the event should last.

Link copied to clipboard
private final Integer endTime

Unix timestamp for the end time to check availability for.

Link copied to clipboard
private final Integer intervalMinutes

Nylas checks from the nearest interval of the passed startTime. For example, to schedule 30-minute meetings (durationMinutes) with 15 minutes between them (intervalMinutes). If you have a meeting starting at 9:59, the API returns times starting at 10:00. 10:00-10:30, 10:15-10:45.

Link copied to clipboard

Participant details to check availability for.

Link copied to clipboard
private final Boolean roundTo30Minutes

When set to true, the availability time slots will start at 30 minutes past or on the hour. For example, a free slot starting at 16:10 is considered available only from 16:30.

Link copied to clipboard
private final Integer startTime

Unix timestamp for the start time to check availability for.

Functions

Link copied to clipboard

The rules to apply when checking availability.

Link copied to clipboard
public final Integer getDurationMinutes()

The total number of minutes the event should last.

Link copied to clipboard
public final Integer getEndTime()

Unix timestamp for the end time to check availability for.

Link copied to clipboard
public final Integer getIntervalMinutes()

Nylas checks from the nearest interval of the passed startTime. For example, to schedule 30-minute meetings (durationMinutes) with 15 minutes between them (intervalMinutes). If you have a meeting starting at 9:59, the API returns times starting at 10:00. 10:00-10:30, 10:15-10:45.

Link copied to clipboard

Participant details to check availability for.

Link copied to clipboard

When set to true, the availability time slots will start at 30 minutes past or on the hour. For example, a free slot starting at 16:10 is considered available only from 16:30.

Link copied to clipboard
public final Integer getStartTime()

Unix timestamp for the start time to check availability for.