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, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases 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.fromandTimeOfDayRange.toproperties.Declaration
Swift
public var periods: [TimeOfDayRange] -
True if the charging location is closed on particular date, in which case
EVChargingOpeningHoursException.periodsis 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)