![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
#import <ThingSmartThingModel.h>
Instance Methods | |
(NSDictionary *) | - dpsFromProperties: |
(NSDictionary *) | - dpsFromProperties: |
(NSDictionary *) | - dpsFromProperties: |
(NSDictionary *) | - dpsFromProperties: |
Properties | |
NSString * | modelId |
The thing model's id. More... | |
NSString * | productId |
The thing model's product id. More... | |
NSString * | productVersion |
The thing model's product version. More... | |
NSArray< ThingSmartThingServiceModel * > * | services |
The thing model's services. More... | |
NSDictionary * | extensions |
The thing model's extensions. More... | |
Definition at line 18 of file ThingSmartThingModel.h.
- (NSDictionary *) dpsFromProperties: | (NSDictionary *) | properties |
Transfer properties to dps formate
Example: Input: { "code_name": { "value": "xxx", "time": 1234567890 } } The property's code="code_name", abilityId="101". Output: { "dps": { "101": "xxx" }, "dpsTime": { "101": 1234567890 } }
properties | properties |
- (NSDictionary *) dpsFromProperties: | (NSDictionary *) | properties |
Transfer properties to dps formate
Example: Input: { "code_name": { "value": "xxx", "time": 1234567890 } } The property's code="code_name", abilityId="101". Output: { "dps": { "101": "xxx" }, "dpsTime": { "101": 1234567890 } }
properties | properties |
- (NSDictionary *) dpsFromProperties: | (NSDictionary *) | properties |
Transfer properties to dps formate
Example: Input: { "code_name": { "value": "xxx", "time": 1234567890 } } The property's code="code_name", abilityId="101". Output: { "dps": { "101": "xxx" }, "dpsTime": { "101": 1234567890 } }
properties | properties |
- (NSDictionary *) dpsFromProperties: | (NSDictionary *) | properties |
Transfer properties to dps formate
Example: Input: { "code_name": { "value": "xxx", "time": 1234567890 } } The property's code="code_name", abilityId="101". Output: { "dps": { "101": "xxx" }, "dpsTime": { "101": 1234567890 } }
properties | properties |
|
readwritenonatomicstrong |
The thing model's extensions.
Definition at line 28 of file ThingSmartThingModel.h.
|
readwritenonatomicstrong |
The thing model's id.
Definition at line 20 of file ThingSmartThingModel.h.
|
readwritenonatomicstrong |
The thing model's product id.
Definition at line 22 of file ThingSmartThingModel.h.
|
readwritenonatomicstrong |
The thing model's product version.
Definition at line 24 of file ThingSmartThingModel.h.
|
readwritenonatomicstrong |
The thing model's services.
Definition at line 26 of file ThingSmartThingModel.h.