Hours

constructor(twentyFourSeven: Boolean, regularHours: List<RegularHours> = emptyList(), exceptionalOpenings: ExceptionalPeriod? = null, exceptionalClosings: ExceptionalPeriod? = null)

Parameters

twentyFourSeven

True to represent 24 hours a day and 7 days a week, except the given exceptions.

regularHours

Regular hours, weekday-based. Only to be used if twentyFourSeven=false, then this field needs to contain at least one RegularHours object.

exceptionalOpenings

Exceptions for specified calendar dates, time-range based. Periods the station is operating/accessible. Additional to regularHours. May overlap regular rules.

exceptionalClosings

Exceptions for specified calendar dates, time-range based. Periods the station is not operating/accessible. Overwriting regularHours and exceptionalOpenings. Should not overlap exceptional_openings.