Tuya iOS Smart Life App SDK 5.15.0
ThingSmartHomeCustomRoleRequestModel Class Reference

#import <ThingSmartHomeCustomRoleRequestModel.h>

Inheritance diagram for ThingSmartHomeCustomRoleRequestModel:

Properties

long long homeId
 The home ID. It is a required field. More...
 
NSString * roleName
 The role's name. The name cannot be empty during creation. More...
 
ThingHomeRoleType role
 The role's type. Set the required role type. More...
 
long long roleId
 The role ID. The roldId cannot be empty during Modification. More...
 
NSString * permissionStr
 

Detailed Description

Definition at line 13 of file ThingSmartHomeCustomRoleRequestModel.h.

Property Documentation

◆ homeId

- (long long) homeId
readwritenonatomicassign

The home ID. It is a required field.

Definition at line 16 of file ThingSmartHomeCustomRoleRequestModel.h.

◆ permissionStr

- (NSString *) permissionStr
readwritenonatomicstrong

The role' resource. Enter the format(JSON String format) of the parameters: [ {"resId":"deviceId","resType":0}, {"resId":"automationId","resType":1} ]. When resType is 0, it represents the device and resId represents the device ID. When resType is 1, it represents the automation and resId represents the automation ID. When resType is 2, it represents the One-click execution and resId represents the One-click execution ID.

Definition at line 32 of file ThingSmartHomeCustomRoleRequestModel.h.

◆ role

- (ThingHomeRoleType) role
readwritenonatomicassign

The role's type. Set the required role type.

Definition at line 22 of file ThingSmartHomeCustomRoleRequestModel.h.

◆ roleId

- (long long) roleId
readwritenonatomicassign

The role ID. The roldId cannot be empty during Modification.

Definition at line 25 of file ThingSmartHomeCustomRoleRequestModel.h.

◆ roleName

- (NSString *) roleName
readwritenonatomicstrong

The role's name. The name cannot be empty during creation.

Definition at line 19 of file ThingSmartHomeCustomRoleRequestModel.h.


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