1
wei
2021-01-21 62d098cb78296feaa6f786a20748921338db838c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// TuyaSmartWeatherOptionModel.h
// TuyaSmartDeviceKit
//
// Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com)
 
#import <Foundation/Foundation.h>
 
typedef enum : NSUInteger {
    TuyaSmartWeatherOptionPressureUnit_unknown = 0,
    TuyaSmartWeatherOptionPressureUnit_hPa = 1,
    TuyaSmartWeatherOptionPressureUnit_inHg = 2,
    TuyaSmartWeatherOptionPressureUnit_mmHg = 3,
    TuyaSmartWeatherOptionPressureUnit_mb = 4,
} TuyaSmartWeatherOptionPressureUnit;
 
typedef enum : NSUInteger {
    TuyaSmartWeatherOptionWindSpeedUnit_unknown = 0,
    TuyaSmartWeatherOptionWindSpeedUnit_mph = 1,
    TuyaSmartWeatherOptionWindSpeedUnit_m_s = 2,// m/s
    TuyaSmartWeatherOptionWindSpeedUnit_kph = 3,
    TuyaSmartWeatherOptionWindSpeedUnit_km_h = 4// km/h
} TuyaSmartWeatherOptionWindSpeedUnit;
 
typedef enum : NSUInteger {
    TuyaSmartWeatherOptionTemperatureUnit_unknown = 0,
    TuyaSmartWeatherOptionTemperatureUnit_Centigrade = 1,// ℃
    TuyaSmartWeatherOptionTemperatureUnit_Fahrenheit = 2,// ℉
} TuyaSmartWeatherOptionTemperatureUnit;
 
NS_ASSUME_NONNULL_BEGIN
 
/// Get home weather request entry.
@interface TuyaSmartWeatherOptionModel : NSObject
 
/// Barometric unit.
@property (nonatomic, assign) TuyaSmartWeatherOptionPressureUnit pressureUnit;
 
/// Wind speed unit
@property (nonatomic, assign) TuyaSmartWeatherOptionWindSpeedUnit windspeedUnit;
 
/// Temperature units
@property (nonatomic, assign) TuyaSmartWeatherOptionTemperatureUnit temperatureUnit;
 
/// The number of requests for weather details, if not configured, all are returned by default.
@property (nonatomic, assign) NSInteger limit;
 
@end
 
NS_ASSUME_NONNULL_END