LeaderboardType
public enum LeaderboardType : UInt8
extension LeaderboardType: FitFieldCodeable
FIT Leaderboard Type
-
Overall
Declaration
Swift
case overall = 0
-
Personal Best
Declaration
Swift
case personalBest = 1
-
Connections
Declaration
Swift
case connections = 2
-
Group
Declaration
Swift
case group = 3
-
Challenger
Declaration
Swift
case challenger = 4
-
King of the Mountain (KOM)
Declaration
Swift
case kom = 5
-
Queen of the Mountain (QOM)
Declaration
Swift
case qom = 6
-
Personal Record (PR)
Declaration
Swift
case personalRecord = 7
-
Goal
Declaration
Swift
case goal = 8
-
Rival
Declaration
Swift
case rival = 9
-
Club Leader
Declaration
Swift
case clubLeader = 10
-
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