Timespan

public final class Timespan extends When

Class representation of a time span with start and end times. An hour lunch meeting would be represented as timespan subobjects.

Constructors

Link copied to clipboard
public When.Timespan When.Timespan(@Json(name = "start_time") Integer startTime, @Json(name = "end_time") Integer endTime, @Json(name = "start_timezone") String startTimezone, @Json(name = "end_timezone") String endTimezone)

Properties

Link copied to clipboard
private final Integer endTime

The end time of the event.

Link copied to clipboard
private final String endTimezone

The timezone of the end time. Timezone using IANA formatted string. (e.g. "America/New_York")

Link copied to clipboard
private final Integer startTime

The start time of the event.

Link copied to clipboard
private final String startTimezone

The timezone of the start time. Timezone using IANA formatted string. (e.g. "America/New_York")

Functions

Link copied to clipboard
public final Integer getEndTime()

The end time of the event.

Link copied to clipboard
public final String getEndTimezone()

The timezone of the end time. Timezone using IANA formatted string. (e.g. "America/New_York")

Link copied to clipboard
public final WhenType getObject()

Returns the WhenType of this When object.

Link copied to clipboard
public final Integer getStartTime()

The start time of the event.

Link copied to clipboard
public final String getStartTimezone()

The timezone of the start time. Timezone using IANA formatted string. (e.g. "America/New_York")