EquipmentType
public struct EquipmentType : OptionSet, Hashable
extension ServiceDataFitnessMachine.EquipmentType: Encodable
Options for Equipment Type Supported by Service
-
Declaration
Swift
public let rawValue: UInt16
-
Declaration
Swift
public init(rawValue: UInt16)
-
Treadmill Supported
Declaration
Swift
public static let treadmillSupported: ServiceDataFitnessMachine.EquipmentType
-
Cross Trainer Supported
Declaration
Swift
public static let crossTrainerSupported: ServiceDataFitnessMachine.EquipmentType
-
Step Climber Supported
Declaration
Swift
public static let stepClimberSupported: ServiceDataFitnessMachine.EquipmentType
-
Stair Climber Supported
Declaration
Swift
public static let stairClimberSupported: ServiceDataFitnessMachine.EquipmentType
-
Rower Supported
Declaration
Swift
public static let rowerSupported: ServiceDataFitnessMachine.EquipmentType
-
Indoor Bike Supported
Declaration
Swift
public static let indoorBikeSupported: ServiceDataFitnessMachine.EquipmentType
-
Encodes this value into the given encoder.
If the value fails to encode anything,
encoder
will encode an empty keyed container in its place.This function throws an error if any values are invalid for the given encoder’s format.
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
The encoder to write data to.