Tuya iOS Smart Life App SDK 5.15.0
ThingSmartScene Class Reference

ThingSmartScene is used to add, edit delete and execute scenes. More...

#import <ThingSmartScene.h>

Inheritance diagram for ThingSmartScene:

Instance Methods

(instancetype) - initWithSceneModel:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:
 
(void) - modifySceneWithSceneModel:success:failure:
 
(void) - modifySceneWithSceneModel:needCleanGidSid:success:failure:
 
(void) - editSceneWithSceneModel:needCleanGidSid:success:failure:
 
(void) - editScene:success:failure:
 
(void) - deleteSceneWithHomeId:success:failure:
 
(void) - executeSceneWithSuccess:failure:
 
(void) - disableSceneWithSuccess:failure:
 
(void) - enableSceneWithSuccess:failure:
 
(void) - triggerRecommendSceneWithHomeId:success:failure:
 
(void) - removeRecommendSceneWithHomeId:success:failure:
 
(void) - saveRecommendSceneWithHomeId:success:failure:
 
(void) - cancelRequest
 Cancel the request being executed. More...
 
(void) - deleteSceneWithSuccess:failure:
 
(void) - modifySceneWithName:background:showFirstPage:conditionList:actionList:matchType:success:failure:
 
(instancetype) - initWithSceneModel:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:
 
(void) - modifySceneWithSceneModel:success:failure:
 
(void) - modifySceneWithSceneModel:needCleanGidSid:success:failure:
 
(void) - editSceneWithSceneModel:needCleanGidSid:success:failure:
 
(void) - editScene:success:failure:
 
(void) - deleteSceneWithHomeId:success:failure:
 
(void) - executeSceneWithSuccess:failure:
 
(void) - disableSceneWithSuccess:failure:
 
(void) - enableSceneWithSuccess:failure:
 
(void) - triggerRecommendSceneWithHomeId:success:failure:
 
(void) - removeRecommendSceneWithHomeId:success:failure:
 
(void) - saveRecommendSceneWithHomeId:success:failure:
 
(void) - cancelRequest
 Cancel the request being executed. More...
 
(void) - deleteSceneWithSuccess:failure:
 
(void) - modifySceneWithName:background:showFirstPage:conditionList:actionList:matchType:success:failure:
 
(instancetype) - initWithSceneModel:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:
 
(void) - modifySceneWithSceneModel:success:failure:
 
(void) - modifySceneWithSceneModel:needCleanGidSid:success:failure:
 
(void) - editSceneWithSceneModel:needCleanGidSid:success:failure:
 
(void) - editScene:success:failure:
 
(void) - deleteSceneWithHomeId:success:failure:
 
(void) - executeSceneWithSuccess:failure:
 
(void) - disableSceneWithSuccess:failure:
 
(void) - enableSceneWithSuccess:failure:
 
(void) - triggerRecommendSceneWithHomeId:success:failure:
 
(void) - removeRecommendSceneWithHomeId:success:failure:
 
(void) - saveRecommendSceneWithHomeId:success:failure:
 
(void) - cancelRequest
 Cancel the request being executed. More...
 
(void) - deleteSceneWithSuccess:failure:
 
(void) - modifySceneWithName:background:showFirstPage:conditionList:actionList:matchType:success:failure:
 
(instancetype) - initWithSceneModel:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:
 
(void) - modifySceneWithSceneModel:success:failure:
 
(void) - modifySceneWithSceneModel:needCleanGidSid:success:failure:
 
(void) - editSceneWithSceneModel:needCleanGidSid:success:failure:
 
(void) - editScene:success:failure:
 
(void) - deleteSceneWithHomeId:success:failure:
 
(void) - executeSceneWithSuccess:failure:
 
(void) - disableSceneWithSuccess:failure:
 
(void) - enableSceneWithSuccess:failure:
 
(void) - triggerRecommendSceneWithHomeId:success:failure:
 
(void) - removeRecommendSceneWithHomeId:success:failure:
 
(void) - saveRecommendSceneWithHomeId:success:failure:
 
(void) - cancelRequest
 Cancel the request being executed. More...
 
(void) - deleteSceneWithSuccess:failure:
 
(void) - modifySceneWithName:background:showFirstPage:conditionList:actionList:matchType:success:failure:
 

Class Methods

(instancetype) + sceneWithSceneModel:
 
(void) + addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:
 
(void) + addNewSceneWithSceneModel:homeId:success:failure:
 
(void) + addNewSceneWithSceneModel:needCleanGidSid:homeId:success:failure:
 
(void) + addScene:homeID:success:failure:
 
(void) + addNewSceneWithName:homeId:background:showFirstPage:conditionList:actionList:matchType:success:failure:
 
(instancetype) + sceneWithSceneModel:
 
(void) + addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:
 
(void) + addNewSceneWithSceneModel:homeId:success:failure:
 
(void) + addNewSceneWithSceneModel:needCleanGidSid:homeId:success:failure:
 
(void) + addScene:homeID:success:failure:
 
(void) + addNewSceneWithName:homeId:background:showFirstPage:conditionList:actionList:matchType:success:failure:
 
(instancetype) + sceneWithSceneModel:
 
(void) + addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:
 
(void) + addNewSceneWithSceneModel:homeId:success:failure:
 
(void) + addNewSceneWithSceneModel:needCleanGidSid:homeId:success:failure:
 
(void) + addScene:homeID:success:failure:
 
(void) + addNewSceneWithName:homeId:background:showFirstPage:conditionList:actionList:matchType:success:failure:
 
(instancetype) + sceneWithSceneModel:
 
(void) + addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:
 
(void) + addNewSceneWithSceneModel:homeId:success:failure:
 
(void) + addNewSceneWithSceneModel:needCleanGidSid:homeId:success:failure:
 
(void) + addScene:homeID:success:failure:
 
(void) + addNewSceneWithName:homeId:background:showFirstPage:conditionList:actionList:matchType:success:failure:
 

Detailed Description

ThingSmartScene is used to add, edit delete and execute scenes.

Definition at line 15 of file ThingSmartScene.h.

Method Documentation

◆ addNewSceneWithName:homeId:background:showFirstPage:conditionList:actionList:matchType:success:failure: [1/4]

+ (void) addNewSceneWithName: (NSString *)  name
homeId: (long long)  homeId
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] 

Add a scene by all param, (deprecated).

Parameters
nameThe scene name.
homeIdThe home id.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.
Deprecated:
This method is deprecated, Use -[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead

◆ addNewSceneWithName:homeId:background:showFirstPage:conditionList:actionList:matchType:success:failure: [2/4]

+ (void) addNewSceneWithName: (NSString *)  name
homeId: (long long)  homeId
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] 

Add a scene by all param, (deprecated).

Parameters
nameThe scene name.
homeIdThe home id.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.
Deprecated:
This method is deprecated, Use -[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead

◆ addNewSceneWithName:homeId:background:showFirstPage:conditionList:actionList:matchType:success:failure: [3/4]

+ (void) addNewSceneWithName: (NSString *)  name
homeId: (long long)  homeId
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] 

Add a scene by all param, (deprecated).

Parameters
nameThe scene name.
homeIdThe home id.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.
Deprecated:
This method is deprecated, Use -[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead

◆ addNewSceneWithName:homeId:background:showFirstPage:conditionList:actionList:matchType:success:failure: [4/4]

+ (void) addNewSceneWithName: (NSString *)  name
homeId: (long long)  homeId
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] 

Add a scene by all param, (deprecated).

Parameters
nameThe scene name.
homeIdThe home id.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.
Deprecated:
This method is deprecated, Use -[ThingSmartScene addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead

◆ addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [1/4]

+ (void) addNewSceneWithName: (NSString *)  name
homeId: (long long)  homeId
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
preConditionList: (NSArray< ThingSmartScenePreConditionModel * > *)  preConditionList
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Add a scene by all param

Parameters
nameThe scene name.
homeIdThe home id.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
preConditionListpreconditions, like valid time period.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [2/4]

+ (void) addNewSceneWithName: (NSString *)  name
homeId: (long long)  homeId
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
preConditionList: (NSArray< ThingSmartScenePreConditionModel * > *)  preConditionList
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Add a scene by all param

Parameters
nameThe scene name.
homeIdThe home id.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
preConditionListpreconditions, like valid time period.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [3/4]

+ (void) addNewSceneWithName: (NSString *)  name
homeId: (long long)  homeId
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
preConditionList: (NSArray< ThingSmartScenePreConditionModel * > *)  preConditionList
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Add a scene by all param

Parameters
nameThe scene name.
homeIdThe home id.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
preConditionListpreconditions, like valid time period.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ addNewSceneWithName:homeId:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [4/4]

+ (void) addNewSceneWithName: (NSString *)  name
homeId: (long long)  homeId
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
preConditionList: (NSArray< ThingSmartScenePreConditionModel * > *)  preConditionList
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Add a scene by all param

Parameters
nameThe scene name.
homeIdThe home id.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
preConditionListpreconditions, like valid time period.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ addNewSceneWithSceneModel:homeId:success:failure: [1/4]

+ (void) addNewSceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
homeId: (long long)  homeId
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Add a new scene.Use a sceneModel with complete information of a scene.

Parameters
sceneModelThingSmartSceneModel
homeIdThe home id.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ addNewSceneWithSceneModel:homeId:success:failure: [2/4]

+ (void) addNewSceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
homeId: (long long)  homeId
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Add a new scene.Use a sceneModel with complete information of a scene.

Parameters
sceneModelThingSmartSceneModel
homeIdThe home id.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ addNewSceneWithSceneModel:homeId:success:failure: [3/4]

+ (void) addNewSceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
homeId: (long long)  homeId
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Add a new scene.Use a sceneModel with complete information of a scene.

Parameters
sceneModelThingSmartSceneModel
homeIdThe home id.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ addNewSceneWithSceneModel:homeId:success:failure: [4/4]

+ (void) addNewSceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
homeId: (long long)  homeId
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Add a new scene.Use a sceneModel with complete information of a scene.

Parameters
sceneModelThingSmartSceneModel
homeIdThe home id.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ addNewSceneWithSceneModel:needCleanGidSid:homeId:success:failure: [1/4]

+ (void) addNewSceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
needCleanGidSid: (BOOL)  needCleanGidSid
homeId: (long long)  homeId
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Add a new scene. Use a sceneModel with complete information of a scene. Setting needCleanGidSid at will may cause scene control to become invalid.

Parameters
sceneModelThingSmartSceneModel
needCleanGidSidThe flag means need to clean sid and gid in scene extraProperty.
homeIdThe home id.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ addNewSceneWithSceneModel:needCleanGidSid:homeId:success:failure: [2/4]

+ (void) addNewSceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
needCleanGidSid: (BOOL)  needCleanGidSid
homeId: (long long)  homeId
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Add a new scene. Use a sceneModel with complete information of a scene. Setting needCleanGidSid at will may cause scene control to become invalid.

Parameters
sceneModelThingSmartSceneModel
needCleanGidSidThe flag means need to clean sid and gid in scene extraProperty.
homeIdThe home id.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ addNewSceneWithSceneModel:needCleanGidSid:homeId:success:failure: [3/4]

+ (void) addNewSceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
needCleanGidSid: (BOOL)  needCleanGidSid
homeId: (long long)  homeId
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Add a new scene. Use a sceneModel with complete information of a scene. Setting needCleanGidSid at will may cause scene control to become invalid.

Parameters
sceneModelThingSmartSceneModel
needCleanGidSidThe flag means need to clean sid and gid in scene extraProperty.
homeIdThe home id.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ addNewSceneWithSceneModel:needCleanGidSid:homeId:success:failure: [4/4]

+ (void) addNewSceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
needCleanGidSid: (BOOL)  needCleanGidSid
homeId: (long long)  homeId
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Add a new scene. Use a sceneModel with complete information of a scene. Setting needCleanGidSid at will may cause scene control to become invalid.

Parameters
sceneModelThingSmartSceneModel
needCleanGidSidThe flag means need to clean sid and gid in scene extraProperty.
homeIdThe home id.
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ addScene:homeID:success:failure: [1/4]

+ (void) addScene: (TSceneRequestInfo *)  sceneInfo
homeID: (long long)  homeID
success: (ThingSceneGetModelCompletion success
failure: (ThingFailureError failure 

Add a scene.

Parameters
sceneInfoThe added scene attributes.
homeIDThe home ID.
successWhen success, return ThingSmartSceneModel object.
failureWhen error occurred, return error.

◆ addScene:homeID:success:failure: [2/4]

+ (void) addScene: (TSceneRequestInfo *)  sceneInfo
homeID: (long long)  homeID
success: (ThingSceneGetModelCompletion success
failure: (ThingFailureError failure 

Add a scene.

Parameters
sceneInfoThe added scene attributes.
homeIDThe home ID.
successWhen success, return ThingSmartSceneModel object.
failureWhen error occurred, return error.

◆ addScene:homeID:success:failure: [3/4]

+ (void) addScene: (TSceneRequestInfo *)  sceneInfo
homeID: (long long)  homeID
success: (ThingSceneGetModelCompletion success
failure: (ThingFailureError failure 

Add a scene.

Parameters
sceneInfoThe added scene attributes.
homeIDThe home ID.
successWhen success, return ThingSmartSceneModel object.
failureWhen error occurred, return error.

◆ addScene:homeID:success:failure: [4/4]

+ (void) addScene: (TSceneRequestInfo *)  sceneInfo
homeID: (long long)  homeID
success: (ThingSceneGetModelCompletion success
failure: (ThingFailureError failure 

Add a scene.

Parameters
sceneInfoThe added scene attributes.
homeIDThe home ID.
successWhen success, return ThingSmartSceneModel object.
failureWhen error occurred, return error.

◆ cancelRequest [1/4]

- (void) cancelRequest

Cancel the request being executed.

◆ cancelRequest [2/4]

- (void) cancelRequest

Cancel the request being executed.

◆ cancelRequest [3/4]

- (void) cancelRequest

Cancel the request being executed.

◆ cancelRequest [4/4]

- (void) cancelRequest

Cancel the request being executed.

◆ deleteSceneWithHomeId:success:failure: [1/4]

- (void) deleteSceneWithHomeId: (long long)  homeId
success: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Delete a existed scene.

Parameters
homeIdcurrent homeId
successWhen success return ThingSuccessBOOL.
failureWhen failure return ThingFailureError.

◆ deleteSceneWithHomeId:success:failure: [2/4]

- (void) deleteSceneWithHomeId: (long long)  homeId
success: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Delete a existed scene.

Parameters
homeIdcurrent homeId
successWhen success return ThingSuccessBOOL.
failureWhen failure return ThingFailureError.

◆ deleteSceneWithHomeId:success:failure: [3/4]

- (void) deleteSceneWithHomeId: (long long)  homeId
success: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Delete a existed scene.

Parameters
homeIdcurrent homeId
successWhen success return ThingSuccessBOOL.
failureWhen failure return ThingFailureError.

◆ deleteSceneWithHomeId:success:failure: [4/4]

- (void) deleteSceneWithHomeId: (long long)  homeId
success: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Delete a existed scene.

Parameters
homeIdcurrent homeId
successWhen success return ThingSuccessBOOL.
failureWhen failure return ThingFailureError.

◆ deleteSceneWithSuccess:failure: [1/4]

- (void) deleteSceneWithSuccess: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartScene deleteSceneWithHomeId:success:failure:] 

Delete a existed scene.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ deleteSceneWithSuccess:failure: [2/4]

- (void) deleteSceneWithSuccess: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartScene deleteSceneWithHomeId:success:failure:] 

Delete a existed scene.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ deleteSceneWithSuccess:failure: [3/4]

- (void) deleteSceneWithSuccess: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartScene deleteSceneWithHomeId:success:failure:] 

Delete a existed scene.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ deleteSceneWithSuccess:failure: [4/4]

- (void) deleteSceneWithSuccess: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartScene deleteSceneWithHomeId:success:failure:] 

Delete a existed scene.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ disableSceneWithSuccess:failure: [1/4]

- (void) disableSceneWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Disable an automation, which will not executed automatically.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ disableSceneWithSuccess:failure: [2/4]

- (void) disableSceneWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Disable an automation, which will not executed automatically.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ disableSceneWithSuccess:failure: [3/4]

- (void) disableSceneWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Disable an automation, which will not executed automatically.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ disableSceneWithSuccess:failure: [4/4]

- (void) disableSceneWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Disable an automation, which will not executed automatically.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ editScene:success:failure: [1/4]

- (void) editScene: (TSceneRequestInfo *)  sceneInfo
success: (ThingSceneGetModelCompletion success
failure: (ThingFailureError failure 

Edit a existed scene. Use a scene infomation with complete information of a scene. This method is not recommended for saving scenes.

Parameters
sceneInfoThe edited scene attributes.
successWhen success, return ThingSmartSceneModel object.
failureWhen error occurred, return error.

◆ editScene:success:failure: [2/4]

- (void) editScene: (TSceneRequestInfo *)  sceneInfo
success: (ThingSceneGetModelCompletion success
failure: (ThingFailureError failure 

Edit a existed scene. Use a scene infomation with complete information of a scene. This method is not recommended for saving scenes.

Parameters
sceneInfoThe edited scene attributes.
successWhen success, return ThingSmartSceneModel object.
failureWhen error occurred, return error.

◆ editScene:success:failure: [3/4]

- (void) editScene: (TSceneRequestInfo *)  sceneInfo
success: (ThingSceneGetModelCompletion success
failure: (ThingFailureError failure 

Edit a existed scene. Use a scene infomation with complete information of a scene. This method is not recommended for saving scenes.

Parameters
sceneInfoThe edited scene attributes.
successWhen success, return ThingSmartSceneModel object.
failureWhen error occurred, return error.

◆ editScene:success:failure: [4/4]

- (void) editScene: (TSceneRequestInfo *)  sceneInfo
success: (ThingSceneGetModelCompletion success
failure: (ThingFailureError failure 

Edit a existed scene. Use a scene infomation with complete information of a scene. This method is not recommended for saving scenes.

Parameters
sceneInfoThe edited scene attributes.
successWhen success, return ThingSmartSceneModel object.
failureWhen error occurred, return error.

◆ editSceneWithSceneModel:needCleanGidSid:success:failure: [1/4]

- (void) editSceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
needCleanGidSid: (BOOL)  needCleanGidSid
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Edit a existed scene. Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.

Parameters
sceneModelThingSmartSceneModel
needCleanGidSidneedCleanGidSid
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ editSceneWithSceneModel:needCleanGidSid:success:failure: [2/4]

- (void) editSceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
needCleanGidSid: (BOOL)  needCleanGidSid
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Edit a existed scene. Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.

Parameters
sceneModelThingSmartSceneModel
needCleanGidSidneedCleanGidSid
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ editSceneWithSceneModel:needCleanGidSid:success:failure: [3/4]

- (void) editSceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
needCleanGidSid: (BOOL)  needCleanGidSid
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Edit a existed scene. Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.

Parameters
sceneModelThingSmartSceneModel
needCleanGidSidneedCleanGidSid
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ editSceneWithSceneModel:needCleanGidSid:success:failure: [4/4]

- (void) editSceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
needCleanGidSid: (BOOL)  needCleanGidSid
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Edit a existed scene. Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.

Parameters
sceneModelThingSmartSceneModel
needCleanGidSidneedCleanGidSid
successWhen success return ThingSmartSceneModel.
failureWhen failure return ThingFailureError.

◆ enableSceneWithSuccess:failure: [1/4]

- (void) enableSceneWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Enable an automation, which will be executed while the conditions are matched.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ enableSceneWithSuccess:failure: [2/4]

- (void) enableSceneWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Enable an automation, which will be executed while the conditions are matched.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ enableSceneWithSuccess:failure: [3/4]

- (void) enableSceneWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Enable an automation, which will be executed while the conditions are matched.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ enableSceneWithSuccess:failure: [4/4]

- (void) enableSceneWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Enable an automation, which will be executed while the conditions are matched.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ executeSceneWithSuccess:failure: [1/4]

- (void) executeSceneWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Execute a scene.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ executeSceneWithSuccess:failure: [2/4]

- (void) executeSceneWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Execute a scene.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ executeSceneWithSuccess:failure: [3/4]

- (void) executeSceneWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Execute a scene.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ executeSceneWithSuccess:failure: [4/4]

- (void) executeSceneWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Execute a scene.

Parameters
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ initWithSceneModel: [1/4]

- (instancetype) initWithSceneModel: (ThingSmartSceneModel *)  sceneModel

Instance method for initialize ThingSmartScene by ThingSmartSceneModel.

Parameters
sceneModelscene model.
Returns
instance of ThingSmartScene.

◆ initWithSceneModel: [2/4]

- (instancetype) initWithSceneModel: (ThingSmartSceneModel *)  sceneModel

Instance method for initialize ThingSmartScene by ThingSmartSceneModel.

Parameters
sceneModelscene model.
Returns
instance of ThingSmartScene.

◆ initWithSceneModel: [3/4]

- (instancetype) initWithSceneModel: (ThingSmartSceneModel *)  sceneModel

Instance method for initialize ThingSmartScene by ThingSmartSceneModel.

Parameters
sceneModelscene model.
Returns
instance of ThingSmartScene.

◆ initWithSceneModel: [4/4]

- (instancetype) initWithSceneModel: (ThingSmartSceneModel *)  sceneModel

Instance method for initialize ThingSmartScene by ThingSmartSceneModel.

Parameters
sceneModelscene model.
Returns
instance of ThingSmartScene.

◆ modifySceneWithName:background:showFirstPage:conditionList:actionList:matchType:success:failure: [1/4]

- (void) modifySceneWithName: (NSString *)  name
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] 

Edit an existed scene with all param, (deprecated).

Parameters
nameThe scene name.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.
Deprecated:
This method is deprecated, Use -[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead.

◆ modifySceneWithName:background:showFirstPage:conditionList:actionList:matchType:success:failure: [2/4]

- (void) modifySceneWithName: (NSString *)  name
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] 

Edit an existed scene with all param, (deprecated).

Parameters
nameThe scene name.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.
Deprecated:
This method is deprecated, Use -[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead.

◆ modifySceneWithName:background:showFirstPage:conditionList:actionList:matchType:success:failure: [3/4]

- (void) modifySceneWithName: (NSString *)  name
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] 

Edit an existed scene with all param, (deprecated).

Parameters
nameThe scene name.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.
Deprecated:
This method is deprecated, Use -[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead.

◆ modifySceneWithName:background:showFirstPage:conditionList:actionList:matchType:success:failure: [4/4]

- (void) modifySceneWithName: (NSString *)  name
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use - instead")  __deprecated_msg[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] 

Edit an existed scene with all param, (deprecated).

Parameters
nameThe scene name.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.
Deprecated:
This method is deprecated, Use -[ThingSmartScene modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure:] instead.

◆ modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [1/4]

- (void) modifySceneWithName: (NSString *)  name
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
preConditionList: (NSArray< ThingSmartScenePreConditionModel * > *)  preConditionList
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Edit a existed scene with all param

Parameters
nameThe scene name.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
preConditionListpreconditions, like valid time period.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [2/4]

- (void) modifySceneWithName: (NSString *)  name
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
preConditionList: (NSArray< ThingSmartScenePreConditionModel * > *)  preConditionList
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Edit a existed scene with all param

Parameters
nameThe scene name.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
preConditionListpreconditions, like valid time period.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [3/4]

- (void) modifySceneWithName: (NSString *)  name
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
preConditionList: (NSArray< ThingSmartScenePreConditionModel * > *)  preConditionList
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Edit a existed scene with all param

Parameters
nameThe scene name.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
preConditionListpreconditions, like valid time period.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ modifySceneWithName:background:showFirstPage:preConditionList:conditionList:actionList:matchType:success:failure: [4/4]

- (void) modifySceneWithName: (NSString *)  name
background: (NSString *)  background
showFirstPage: (BOOL)  showFirstPage
preConditionList: (NSArray< ThingSmartScenePreConditionModel * > *)  preConditionList
conditionList: (NSArray< ThingSmartSceneConditionModel * > *)  conditionList
actionList: (NSArray< ThingSmartSceneActionModel * > *)  actionList
matchType: (ThingSmartConditionMatchType)  matchType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Edit a existed scene with all param

Parameters
nameThe scene name.
backgroundThe background image url.
showFirstPageShow the scene in index page or not.
preConditionListpreconditions, like valid time period.
conditionListCondition list.
actionListAction list.
matchTypeMatch all conditions/any condition will execute the automation.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ modifySceneWithSceneModel:needCleanGidSid:success:failure: [1/4]

- (void) modifySceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
needCleanGidSid: (BOOL)  needCleanGidSid
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Edit a existed scene.Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.

Parameters
sceneModelThingSmartSceneModel
needCleanGidSidneedCleanGidSid
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ modifySceneWithSceneModel:needCleanGidSid:success:failure: [2/4]

- (void) modifySceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
needCleanGidSid: (BOOL)  needCleanGidSid
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Edit a existed scene.Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.

Parameters
sceneModelThingSmartSceneModel
needCleanGidSidneedCleanGidSid
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ modifySceneWithSceneModel:needCleanGidSid:success:failure: [3/4]

- (void) modifySceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
needCleanGidSid: (BOOL)  needCleanGidSid
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Edit a existed scene.Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.

Parameters
sceneModelThingSmartSceneModel
needCleanGidSidneedCleanGidSid
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ modifySceneWithSceneModel:needCleanGidSid:success:failure: [4/4]

- (void) modifySceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
needCleanGidSid: (BOOL)  needCleanGidSid
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Edit a existed scene.Use a sceneModel with complete information of a scene. This method is not recommended for saving scenes. Setting needCleanGidSid at will may cause scene control to become invalid.

Parameters
sceneModelThingSmartSceneModel
needCleanGidSidneedCleanGidSid
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ modifySceneWithSceneModel:success:failure: [1/4]

- (void) modifySceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Edit a existed scene.Use a sceneModel with complete information of a scene.

Parameters
sceneModelThingSmartSceneModel
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ modifySceneWithSceneModel:success:failure: [2/4]

- (void) modifySceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Edit a existed scene.Use a sceneModel with complete information of a scene.

Parameters
sceneModelThingSmartSceneModel
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ modifySceneWithSceneModel:success:failure: [3/4]

- (void) modifySceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Edit a existed scene.Use a sceneModel with complete information of a scene.

Parameters
sceneModelThingSmartSceneModel
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ modifySceneWithSceneModel:success:failure: [4/4]

- (void) modifySceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Edit a existed scene.Use a sceneModel with complete information of a scene.

Parameters
sceneModelThingSmartSceneModel
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ NS_UNAVAILABLE [1/4]

- (instancetype) NS_UNAVAILABLE

Don't initialize an instance with init method.

Returns
This method will return an unavailable instance.

◆ NS_UNAVAILABLE [2/4]

- (instancetype) NS_UNAVAILABLE

Don't initialize an instance with init method.

Returns
This method will return an unavailable instance.

◆ NS_UNAVAILABLE [3/4]

- (instancetype) NS_UNAVAILABLE

Don't initialize an instance with init method.

Returns
This method will return an unavailable instance.

◆ NS_UNAVAILABLE [4/4]

- (instancetype) NS_UNAVAILABLE

Don't initialize an instance with init method.

Returns
This method will return an unavailable instance.

◆ removeRecommendSceneWithHomeId:success:failure: [1/4]

- (void) removeRecommendSceneWithHomeId: (long long)  homeId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Delete a recommended scene.

Parameters
homeIdThe home id.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ removeRecommendSceneWithHomeId:success:failure: [2/4]

- (void) removeRecommendSceneWithHomeId: (long long)  homeId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Delete a recommended scene.

Parameters
homeIdThe home id.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ removeRecommendSceneWithHomeId:success:failure: [3/4]

- (void) removeRecommendSceneWithHomeId: (long long)  homeId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Delete a recommended scene.

Parameters
homeIdThe home id.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ removeRecommendSceneWithHomeId:success:failure: [4/4]

- (void) removeRecommendSceneWithHomeId: (long long)  homeId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Delete a recommended scene.

Parameters
homeIdThe home id.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ saveRecommendSceneWithHomeId:success:failure: [1/4]

- (void) saveRecommendSceneWithHomeId: (long long)  homeId
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Save a recommended scene, this scene can be modified by user. this scene will become a normal scene after save successfully, and the recommended scene will not show anymore.

Parameters
homeIdThe home id.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ saveRecommendSceneWithHomeId:success:failure: [2/4]

- (void) saveRecommendSceneWithHomeId: (long long)  homeId
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Save a recommended scene, this scene can be modified by user. this scene will become a normal scene after save successfully, and the recommended scene will not show anymore.

Parameters
homeIdThe home id.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ saveRecommendSceneWithHomeId:success:failure: [3/4]

- (void) saveRecommendSceneWithHomeId: (long long)  homeId
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Save a recommended scene, this scene can be modified by user. this scene will become a normal scene after save successfully, and the recommended scene will not show anymore.

Parameters
homeIdThe home id.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ saveRecommendSceneWithHomeId:success:failure: [4/4]

- (void) saveRecommendSceneWithHomeId: (long long)  homeId
success: (void(^)(ThingSmartSceneModel *sceneModel))  success
failure: (ThingFailureError failure 

Save a recommended scene, this scene can be modified by user. this scene will become a normal scene after save successfully, and the recommended scene will not show anymore.

Parameters
homeIdThe home id.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ sceneWithSceneModel: [1/4]

+ (instancetype) sceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel

Class method for initialize ThingSmartScene by ThingSmartSceneModel.

Parameters
sceneModelscene model.
Returns
instance of ThingSmartScene.

◆ sceneWithSceneModel: [2/4]

+ (instancetype) sceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel

Class method for initialize ThingSmartScene by ThingSmartSceneModel.

Parameters
sceneModelscene model.
Returns
instance of ThingSmartScene.

◆ sceneWithSceneModel: [3/4]

+ (instancetype) sceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel

Class method for initialize ThingSmartScene by ThingSmartSceneModel.

Parameters
sceneModelscene model.
Returns
instance of ThingSmartScene.

◆ sceneWithSceneModel: [4/4]

+ (instancetype) sceneWithSceneModel: (ThingSmartSceneModel *)  sceneModel

Class method for initialize ThingSmartScene by ThingSmartSceneModel.

Parameters
sceneModelscene model.
Returns
instance of ThingSmartScene.

◆ triggerRecommendSceneWithHomeId:success:failure: [1/4]

- (void) triggerRecommendSceneWithHomeId: (long long)  homeId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Execute a recommended scene.

Parameters
homeIdThe home id.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ triggerRecommendSceneWithHomeId:success:failure: [2/4]

- (void) triggerRecommendSceneWithHomeId: (long long)  homeId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Execute a recommended scene.

Parameters
homeIdThe home id.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ triggerRecommendSceneWithHomeId:success:failure: [3/4]

- (void) triggerRecommendSceneWithHomeId: (long long)  homeId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Execute a recommended scene.

Parameters
homeIdThe home id.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

◆ triggerRecommendSceneWithHomeId:success:failure: [4/4]

- (void) triggerRecommendSceneWithHomeId: (long long)  homeId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Execute a recommended scene.

Parameters
homeIdThe home id.
successWhen success return ThingSuccessHandler.
failureWhen failure return ThingFailureError.

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