GoalRecurrence
public enum GoalRecurrence : UInt8
extension GoalRecurrence: FitFieldCodeable
FIT Goal Recurrence
-
Off
Declaration
Swift
case off = 0
-
Daily
Declaration
Swift
case daily = 1
-
Weekly
Declaration
Swift
case weekly = 2
-
Monthly
Declaration
Swift
case monthly = 3
-
Yearly
Declaration
Swift
case yearly = 4
-
Custom
Declaration
Swift
case custom = 5
-
Invalid
Declaration
Swift
case invalid = 255
-
Encode Into Data
Declaration
Swift
public func encode(base: BaseTypeData) -> Data?
Parameters
base
BaseTypeData
-
Decode FIT Field
Declaration
Swift
public static func decode<T>(type: T.Type, data: Data, base: BaseTypeData, arch: Endian) -> T?
Parameters
type
Type of Field
data
Data to Decode
base
BaseTypeData
arch
Endian
Return Value
Decoded Value