Tuya iOS Smart Life App SDK 5.15.0
ThingSmartDp Class Reference

#import <ThingSmartDpParser.h>

Inheritance diagram for ThingSmartDp:
ThingSmartLightDp ThingSmartLightDp ThingSmartLightDp ThingSmartLightDp

Instance Methods

(nullable NSDictionary *) - publishCommands:
 
(NSString *) - valueStatusWithDpValue:
 
(ThingSmartDpValueDisplay *) - valueDisplayWithDpValue:
 
(nullable NSDictionary *) - publishCommands:
 
(NSString *) - valueStatusWithDpValue:
 
(ThingSmartDpValueDisplay *) - valueDisplayWithDpValue:
 
(nullable NSDictionary *) - publishCommands:
 
(NSString *) - valueStatusWithDpValue:
 
(ThingSmartDpValueDisplay *) - valueDisplayWithDpValue:
 
(nullable NSDictionary *) - publishCommands:
 
(NSString *) - valueStatusWithDpValue:
 
(ThingSmartDpValueDisplay *) - valueDisplayWithDpValue:
 

Class Methods

(nullable __kindof ThingSmartDp *) + smartDpWithTargetInfo:dpId:quickOp:
 
(NSArray< __kindof ThingSmartDp * > *) + smartDpListWithTargetInfo:dps:quickOp:
 
(nullable __kindof ThingSmartDp *) + smartDpWithTargetInfo:dpId:quickOp:
 
(NSArray< __kindof ThingSmartDp * > *) + smartDpListWithTargetInfo:dps:quickOp:
 
(nullable __kindof ThingSmartDp *) + smartDpWithTargetInfo:dpId:quickOp:
 
(NSArray< __kindof ThingSmartDp * > *) + smartDpListWithTargetInfo:dps:quickOp:
 
(nullable __kindof ThingSmartDp *) + smartDpWithTargetInfo:dpId:quickOp:
 
(NSArray< __kindof ThingSmartDp * > *) + smartDpListWithTargetInfo:dps:quickOp:
 

Properties

id< ThingSmartDpDataSourceProtocoldpDataSource
 DataSource. More...
 
ThingSmartSchemaModelschemaModel
 SchemaModel of current DP. More...
 
ThingSmartDpType smartDpType
 
NSString * standardDpCode
 
NSString * strategyCode
 
NSInteger dpId
 
NSString * dpType
 
NSString * name
 
NSString * iconname
 
NSString * unit
 
id curDpValue
 
NSString * titleStatus
 Get title display content under the current DP. More...
 
NSString * valueStatus
 Get 'curDpValue' display content under the current DP. More...
 

Detailed Description

Definition at line 70 of file ThingSmartDpParser.h.

Method Documentation

◆ publishCommands: [1/4]

- (nullable NSDictionary *) publishCommands: (id)  newDpValue

◆ publishCommands: [2/4]

- (nullable NSDictionary *) publishCommands: (id)  newDpValue

◆ publishCommands: [3/4]

- (nullable NSDictionary *) publishCommands: (id)  newDpValue

◆ publishCommands: [4/4]

- (nullable NSDictionary *) publishCommands: (id)  newDpValue

◆ smartDpListWithTargetInfo:dps:quickOp: [1/4]

+ (NSArray< __kindof ThingSmartDp * > *) smartDpListWithTargetInfo: (id)  targetInfo
dps: (NSArray< NSNumber * > *)  dps
quickOp: (BOOL)  quickOp 

Create SmartDp list with device or group

◆ smartDpListWithTargetInfo:dps:quickOp: [2/4]

+ (NSArray< __kindof ThingSmartDp * > *) smartDpListWithTargetInfo: (id)  targetInfo
dps: (NSArray< NSNumber * > *)  dps
quickOp: (BOOL)  quickOp 

Create SmartDp list with device or group

◆ smartDpListWithTargetInfo:dps:quickOp: [3/4]

+ (NSArray< __kindof ThingSmartDp * > *) smartDpListWithTargetInfo: (id)  targetInfo
dps: (NSArray< NSNumber * > *)  dps
quickOp: (BOOL)  quickOp 

Create SmartDp list with device or group

◆ smartDpListWithTargetInfo:dps:quickOp: [4/4]

+ (NSArray< __kindof ThingSmartDp * > *) smartDpListWithTargetInfo: (id)  targetInfo
dps: (NSArray< NSNumber * > *)  dps
quickOp: (BOOL)  quickOp 

Create SmartDp list with device or group

◆ smartDpWithTargetInfo:dpId:quickOp: [1/4]

+ (nullable __kindof ThingSmartDp *) smartDpWithTargetInfo: (id)  targetInfo
dpId: (NSInteger)  dpId
quickOp: (BOOL)  quickOp 

Create SmartDp with device or group

◆ smartDpWithTargetInfo:dpId:quickOp: [2/4]

+ (nullable __kindof ThingSmartDp *) smartDpWithTargetInfo: (id)  targetInfo
dpId: (NSInteger)  dpId
quickOp: (BOOL)  quickOp 

Create SmartDp with device or group

◆ smartDpWithTargetInfo:dpId:quickOp: [3/4]

+ (nullable __kindof ThingSmartDp *) smartDpWithTargetInfo: (id)  targetInfo
dpId: (NSInteger)  dpId
quickOp: (BOOL)  quickOp 

Create SmartDp with device or group

◆ smartDpWithTargetInfo:dpId:quickOp: [4/4]

+ (nullable __kindof ThingSmartDp *) smartDpWithTargetInfo: (id)  targetInfo
dpId: (NSInteger)  dpId
quickOp: (BOOL)  quickOp 

Create SmartDp with device or group

◆ valueDisplayWithDpValue: [1/4]

- (ThingSmartDpValueDisplay *) valueDisplayWithDpValue: (id)  dpValue

◆ valueDisplayWithDpValue: [2/4]

- (ThingSmartDpValueDisplay *) valueDisplayWithDpValue: (id)  dpValue

◆ valueDisplayWithDpValue: [3/4]

- (ThingSmartDpValueDisplay *) valueDisplayWithDpValue: (id)  dpValue

◆ valueDisplayWithDpValue: [4/4]

- (ThingSmartDpValueDisplay *) valueDisplayWithDpValue: (id)  dpValue

◆ valueStatusWithDpValue: [1/4]

- (NSString *) valueStatusWithDpValue: (id)  dpValue

Get custom dpValue display content under the current DP

  • Parameter dpValue: custom dpValue

◆ valueStatusWithDpValue: [2/4]

- (NSString *) valueStatusWithDpValue: (id)  dpValue

Get custom dpValue display content under the current DP

  • Parameter dpValue: custom dpValue

◆ valueStatusWithDpValue: [3/4]

- (NSString *) valueStatusWithDpValue: (id)  dpValue

Get custom dpValue display content under the current DP

  • Parameter dpValue: custom dpValue

◆ valueStatusWithDpValue: [4/4]

- (NSString *) valueStatusWithDpValue: (id)  dpValue

Get custom dpValue display content under the current DP

  • Parameter dpValue: custom dpValue

Property Documentation

◆ curDpValue

- (id) curDpValue
readnonatomicstrong

Definition at line 104 of file ThingSmartDpParser.h.

◆ dpDataSource

- (id< ThingSmartDpDataSourceProtocol >) dpDataSource
readnonatomicstrong

DataSource.

Definition at line 90 of file ThingSmartDpParser.h.

◆ dpId

- (NSInteger) dpId
readnonatomicassign

Definition at line 98 of file ThingSmartDpParser.h.

◆ dpType

- (NSString *) dpType
readnonatomicstrong

Definition at line 99 of file ThingSmartDpParser.h.

◆ iconname

- (NSString *) iconname
readnonatomicstrong

Definition at line 101 of file ThingSmartDpParser.h.

◆ name

- (NSString *) name
readnonatomicstrong

Definition at line 100 of file ThingSmartDpParser.h.

◆ schemaModel

- (ThingSmartSchemaModel *) schemaModel
readnonatomicstrong

SchemaModel of current DP.

Definition at line 93 of file ThingSmartDpParser.h.

◆ smartDpType

- (ThingSmartDpType) smartDpType
readnonatomicassign

Definition at line 94 of file ThingSmartDpParser.h.

◆ standardDpCode

- (NSString *) standardDpCode
readnonatomicstrong

Definition at line 95 of file ThingSmartDpParser.h.

◆ strategyCode

- (NSString *) strategyCode
readnonatomicstrong

Definition at line 96 of file ThingSmartDpParser.h.

◆ titleStatus

- (NSString *) titleStatus
readnonatomicstrong

Get title display content under the current DP.

Definition at line 107 of file ThingSmartDpParser.h.

◆ unit

- (NSString *) unit
readnonatomicstrong

Definition at line 102 of file ThingSmartDpParser.h.

◆ valueStatus

- (NSString *) valueStatus
readnonatomicstrong

Get 'curDpValue' display content under the current DP.

Definition at line 110 of file ThingSmartDpParser.h.


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