FitnessEquipmentState
public enum FitnessEquipmentState : Int
Fitness Eqiupment State
-
Reserved
Declaration
Swift
case reserved = 0
-
Asleep
Declaration
Swift
case asleep = 1
-
Ready
Declaration
Swift
case ready = 2
-
In Use
Declaration
Swift
case inUse = 3
-
Puased - Finished
Declaration
Swift
case paused = 4
-
State String Value
Declaration
Swift
public var stringValue: String { get }
-
Checks if the State is allowed to Transition
Note
This is the offical state, but you may need to allow all transitions since you may not start receiving data from the asleep or ready stateDeclaration
Swift
public func canTransition(state: FitnessEquipmentState) -> Bool
Parameters
state
State to Transition to
Return Value
Transition allowed