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
//
// TuyaSmartSchemaPropertyModel.h
// TuyaSmartDeviceCoreKit
//
// Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com)
 
#ifndef TuyaSmart_TuyaSmartSchemaPropertyModel
#define TuyaSmart_TuyaSmartSchemaPropertyModel
 
#import <Foundation/Foundation.h>
 
@interface TuyaSmartSchemaPropertyModel : NSObject
 
/// Type: enum - enumerated | bool - boolean | string - string | value - numeric | bitmap - fault.
@property (nonatomic, strong) NSString   *type;
 
/// Unit For example, ℃.
@property (nonatomic, strong) NSString   *unit;
 
/// Minimum value of numeric type.
@property (nonatomic, assign) double     min;
 
/// max when type is value.
@property (nonatomic, assign) double     max;
 
/// Numerical step.
@property (nonatomic, assign) double     step;
 
/// The exponent of 10 in the numeric type, multiplied by the corresponding transmission value, is equal to the actual value and is used to avoid fractional transmission.
@property (nonatomic, assign) NSInteger  scale;
 
/// The maximum number of bits of the fault type.
@property (nonatomic, assign) NSInteger  maxlen;
 
/// Detailed description of the fault type.
@property (nonatomic, strong) NSArray    *label;
 
/// scope of the enumeration type.
@property (nonatomic, strong) NSArray    *range;
 
/// value of the user to select.
@property (nonatomic, assign) NSInteger selectedValue;
 
@end
 
#endif