OpenHours

public final class OpenHours

Class representation of a participant's open hours.

Constructors

Link copied to clipboard
public OpenHours OpenHours(@Json(name = "days") List<Integer> days, @Json(name = "timezone") String timezone, @Json(name = "start") String start, @Json(name = "end") String end, @Json(name = "exdates") List<String> exdates)

Types

Link copied to clipboard
public final class Builder

Builder for OpenHours.

Properties

Link copied to clipboard
private final List<Integer> days

The days of the week that the open hour settings will be applied to. Sunday corresponds to 0 and Saturday corresponds to 6.

Link copied to clipboard
private final String end

End time in 24-hour time format. Leading 0's are left off.

Link copied to clipboard
private final List<String> exdates

A list of dates that will be excluded from the open hours. Dates should be formatted as YYYY-MM-DD.

Link copied to clipboard
private final String start

Start time in 24-hour time format. Leading 0's are left off.

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 List<Integer> getDays()

The days of the week that the open hour settings will be applied to. Sunday corresponds to 0 and Saturday corresponds to 6.

Link copied to clipboard
public final String getEnd()

End time in 24-hour time format. Leading 0's are left off.

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

A list of dates that will be excluded from the open hours. Dates should be formatted as YYYY-MM-DD.

Link copied to clipboard
public final String getStart()

Start time in 24-hour time format. Leading 0's are left off.

Link copied to clipboard
public final String getTimezone()

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