Duration
public enum Duration
extension ParkingTicket.Duration: Equatable
Duration can be either exact amount of time or loosely defined period of time.
Important
This is a Public Preview API. It may be changed or removed at any time.Compares two instances of ParkingTicket.Duration for equality
Declaration
Swift
public static func == (lhs: ParkingTicket.Duration, rhs: ParkingTicket.Duration) -> Bool
Exact amount of time of the duration.
Declaration
Swift
case explicit(duration: DateComponents, repeatable: Bool)
Parameters
duration
|
the duration defined in calendar units. |
repeatable
|
indicates if the mentioned duration could be used in the ticket to extend
the parking with this chunk of time. |
Loosely defined period of time.
Declaration
Swift
case fuzzy(FuzzyDuration)