WeatherStatus
public enum WeatherStatus : UInt8
extension WeatherStatus: FitFieldCodeable
Weather Status Type
-
Clear
Declaration
Swift
case clear = 0
-
Partly Cloudy
Declaration
Swift
case partlyCloudy = 1
-
Mostly Cloudy
Declaration
Swift
case mostlyCloudy = 2
-
Rain
Declaration
Swift
case rain = 3
-
Snow
Declaration
Swift
case snow = 4
-
Windy
Declaration
Swift
case windy = 5
-
Thunderstorms
Declaration
Swift
case thunderstorms = 6
-
Wintery Mix
Declaration
Swift
case winteryMix = 7
-
Fog
Declaration
Swift
case fog = 8
-
Hazy
Declaration
Swift
case hazy = 11
-
Hail
Declaration
Swift
case hail = 12
-
Scattered Showers
Declaration
Swift
case scatteredShowers = 13
-
Scattered Thunderstorms
Declaration
Swift
case scatteredThunderstorms = 14
-
Unknown Precipitation
Declaration
Swift
case unknownPrecipitation = 15
-
Light Rain
Declaration
Swift
case lightRain = 16
-
Heavy Rain
Declaration
Swift
case heavyRain = 17
-
Light Snow
Declaration
Swift
case lightSnow = 18
-
Heavy Snow
Declaration
Swift
case heavySnow = 19
-
Light Rain Snow
Declaration
Swift
case lightRainSnow = 20
-
Heavy Rain Snow
Declaration
Swift
case heavyRainSnow = 21
-
Cloudy
Declaration
Swift
case cloudy = 22
-
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