Tuya iOS Smart Life App SDK 5.15.0
ThingSmartThingModel Class Reference

#import <ThingSmartThingModel.h>

Inheritance diagram for ThingSmartThingModel:

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...
 

Detailed Description

Definition at line 18 of file ThingSmartThingModel.h.

Method Documentation

◆ dpsFromProperties: [1/4]

- (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 } }

Parameters
propertiesproperties

◆ dpsFromProperties: [2/4]

- (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 } }

Parameters
propertiesproperties

◆ dpsFromProperties: [3/4]

- (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 } }

Parameters
propertiesproperties

◆ dpsFromProperties: [4/4]

- (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 } }

Parameters
propertiesproperties

Property Documentation

◆ extensions

- (NSDictionary *) extensions
readwritenonatomicstrong

The thing model's extensions.

Definition at line 28 of file ThingSmartThingModel.h.

◆ modelId

- (NSString *) modelId
readwritenonatomicstrong

The thing model's id.

Definition at line 20 of file ThingSmartThingModel.h.

◆ productId

- (NSString *) productId
readwritenonatomicstrong

The thing model's product id.

Definition at line 22 of file ThingSmartThingModel.h.

◆ productVersion

- (NSString *) productVersion
readwritenonatomicstrong

The thing model's product version.

Definition at line 24 of file ThingSmartThingModel.h.

◆ services

- (NSArray< ThingSmartThingServiceModel * > *) services
readwritenonatomicstrong

The thing model's services.

Definition at line 26 of file ThingSmartThingModel.h.


The documentation for this class was generated from the following files: