WaitTime
public struct WaitTime : Decodable, Equatable
WaitTime structure returns when loading PracticeService.getEstimatedWaitTime
or VirtualService.getEstimatedWaitTime
-
Date at UTC of when the estimated time was generated. Estimates are cached and updated at various intervals.
Declaration
Swift
public var generatedAt: Date
-
Estimated wait time in seconds of the practice region, or when in the virtual visit waiting room.
Declaration
Swift
public var estimatedWaitTimeSeconds: Int
-
Message that is shown in the waiting room. This may not be returned during
PracticeService.getEstimatedWaitTime
Declaration
Swift
public var estimatedWaitTimeMessage: String?
-
Undocumented
Declaration
Swift
public init( generatedAt: Date, estimatedWaitTimeSeconds: Int, estimatedWaitTimeMessage: String? )
-
An internal decoder to handle dates.
Declaration
Swift
public init(from decoder: Decoder) throws