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.-
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.
repeatable
applies additively only between the previous and next “non-repeatable” tickets. -
Loosely defined period of time.
Declaration
Swift
case fuzzy(FuzzyDuration)
-
Compares two instances of ParkingTicket.Duration for equality
Declaration
Swift
public static func == (lhs: ParkingTicket.Duration, rhs: ParkingTicket.Duration) -> Bool