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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
//
// TuyaSmartGroupModel.h
// TuyaSmartDeviceCoreKit
//
// Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com)
 
#ifndef TuyaSmart_TuyaSmartGroupModel
#define TuyaSmart_TuyaSmartGroupModel
 
typedef enum : NSUInteger {
    TuyaSmartGroupTypeWifi = 0,
    TuyaSmartGroupTypeMesh,
    TuyaSmartGroupTypeZigbee,
    TuyaSmartGroupTypeSIGMesh,
} TuyaSmartGroupType;
 
#import <Foundation/Foundation.h>
#import "TuyaSmartDevice.h"
 
@interface TuyaSmartGroupModel : NSObject
 
/// group Id
@property (nonatomic, strong) NSString  *groupId;
 
/// product Id
@property (nonatomic, strong) NSString  *productId;
 
/// group creation time
@property (nonatomic, assign) long long    time;
 
/// name of group
@property (nonatomic, strong) NSString  *name;
 
/// iconUrl
@property (nonatomic, strong) NSString  *iconUrl;
 
/// type of group
@property (nonatomic, assign) TuyaSmartGroupType  type;
 
@property (nonatomic, assign) BOOL      isShare;
 
/// dps
@property (nonatomic, strong) NSDictionary *dps;
 
/// dpCodes
@property (nonatomic, strong) NSDictionary *dpCodes;
 
/// localKey
@property (nonatomic, strong) NSString     *localKey;
 
/// pv
@property (nonatomic, assign) double        pv;
 
/// deviceNum
@property (nonatomic, assign) NSInteger    deviceNum;
 
/// productInfo
@property (nonatomic, strong) NSDictionary *productInfo;
 
/// homeId
@property (nonatomic, assign) long long    homeId;
 
/// roomId
@property (nonatomic, assign) long long    roomId;
 
/// customize DP name
@property (nonatomic, copy)   NSDictionary *dpName;
 
/// order
@property (nonatomic, assign) NSInteger displayOrder;
 
/// home all group order
@property (nonatomic, assign) NSInteger homeDisplayOrder;
 
/// device list
@property (nonatomic, strong) NSArray<TuyaSmartDeviceModel *> *deviceList;
 
/// local Short Address of Groups
@property (nonatomic, strong) NSString     *localId;
 
/// subclass
@property (nonatomic, strong) NSString     *pcc;
 
/// meshId or gwId
@property (nonatomic, strong) NSString     *meshId;
 
/// schema array
@property (nonatomic, strong) NSArray      *schemaArray;
 
/// is standard dp code
@property (nonatomic, assign) BOOL         standard;
 
/// standard schema
@property (nonatomic, strong, readonly) TuyaSmartStandSchemaModel *standSchemaModel;
 
@end
 
#endif