OpeningHours

Class representing Opening Hours for a Point Of Interest.

Constructors

Link copied to clipboard
constructor(ranges: List<ClosedRange<Date>>, mode: OpeningHoursMode = OpeningHoursMode.NextSevenDays)

Constructor to create a new OpeningHours object.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Defines the OpeningHoursMode, that the opening hours were requested in. By default OpeningHoursMode.NextSevenDays is applied.

Link copied to clipboard

The list of sequential time intervals, that describes opening hours.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun copy(ranges: List<ClosedRange<Date>> = this.ranges, mode: OpeningHoursMode = this.mode, requestDay: Date = this.requestDay): OpeningHours
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun isOpen(date: Date): Boolean
Link copied to clipboard
open override fun toString(): String