EVChargingOpeningHoursException

public struct EVChargingOpeningHoursException : Hashable

Represents exceptions to the regular opening hours schedule for EV charging locations, such as special closures or extended hours.

Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.

  • Date of special opening hours.

    Declaration

    Swift

    public var date: Date
  • A list of time periods when the charging location is open on the specified date. The time periods are in the local time zone of the charging location, and are represented as a list of objects with TimeOfDayRange.from and TimeOfDayRange.to properties.

    Declaration

    Swift

    public var periods: [TimeOfDayRange]
  • True if the charging location is closed on particular date, in which case EVChargingOpeningHoursException.periods is empty.

    Declaration

    Swift

    public var closed: Bool
  • Creates a new instance.

    Declaration

    Swift

    public init(date: Date = Date(timeIntervalSince1970: 0), periods: [TimeOfDayRange] = [], closed: Bool = false)