ChargingStation
public struct ChargingStation
A charging station has several charging points, of which only several points can be used at the same time.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates a new
ChargingStation
instance with given parameters.Declaration
Swift
public init(id: Identifier, chargingPoints: [ChargingPoint])
Parameters
id
charging station ID.
chargingPoints
An array of
ChargingPoint
of theChargingStation
.
-
An identifier struct for
ChargingStation
.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct Identifier
-
Charging station ID.
Declaration
Swift
public let id: Identifier
-
An array of
ChargingPoint
of theChargingStation
.Declaration
Swift
public let chargingPoints: [ChargingPoint]