Tuya iOS Smart Life App SDK 5.15.0
<ThingBusinessGroupProtocol> Protocol Reference

#import <ThingBusinessGroupProtocol.h>

Inheritance diagram for <ThingBusinessGroupProtocol>:
ThingBusinessGroupProtocolImpl ThingBusinessGroupProtocolImpl

Instance Methods

(long long) - getCurrentSpaceId
 
(NSArray< ThingSmartDeviceModel * > *) - deviceListForCurrentSpace
 
(NSArray< ThingSmartGroupModel * > *) - groupListForCurrentSpace
 
(NSString *) - getsubSpaceNameWithDevice:
 
(void) - getDevListWithProductId:spaceId:success:failure:
 
(void) - getDevListWithGroup:productId:success:failure:
 
(void) - createGroupWithName:productId:spaceId:devIdList:success:failure:
 
(void) - updateGroupRelationsWithGroup:devList:success:failure:
 
(void) - getDpCodeDevListWithSpaceId:productId:success:failure:
 
(void) - getDpCodeDevListWithGroup:success:failure:
 
(void) - createDpCodeGroupWithName:spaceId:productId:devIdList:success:failure:
 
(void) - updateDpCodeGroupRelationsWithGroup:devList:success:failure:
 
(void) - getDevListWithProductId:gwId:spaceId:success:failure:
 
(void) - createGroupWithName:spaceId:gwId:productId:success:failure:
 
(void) - removeZigbeeDeviceWithGroup:nodeList:success:failure:
 
(void) - addZigbeeDeviceWithGroup:nodeList:success:failure:
 
(void) - createDpCodeGroupWithName:spaceId:productId:devIds:meshId:success:failure:
 
(void) - getThreadDevListWithProductId:gwId:spaceId:success:failure:
 
(void) - createThreadGroupWithName:spaceId:gwId:productId:devIdList:success:failure:
 
(void) - updateGroupBelong:roomId:success:failure:
 
(long long) - getCurrentSpaceId
 
(NSArray< ThingSmartDeviceModel * > *) - deviceListForCurrentSpace
 
(NSArray< ThingSmartGroupModel * > *) - groupListForCurrentSpace
 
(NSString *) - getsubSpaceNameWithDevice:
 
(void) - getDevListWithProductId:spaceId:success:failure:
 
(void) - getDevListWithGroup:productId:success:failure:
 
(void) - createGroupWithName:productId:spaceId:devIdList:success:failure:
 
(void) - updateGroupRelationsWithGroup:devList:success:failure:
 
(void) - getDpCodeDevListWithSpaceId:productId:success:failure:
 
(void) - getDpCodeDevListWithGroup:success:failure:
 
(void) - createDpCodeGroupWithName:spaceId:productId:devIdList:success:failure:
 
(void) - updateDpCodeGroupRelationsWithGroup:devList:success:failure:
 
(void) - getDevListWithProductId:gwId:spaceId:success:failure:
 
(void) - createGroupWithName:spaceId:gwId:productId:success:failure:
 
(void) - removeZigbeeDeviceWithGroup:nodeList:success:failure:
 
(void) - addZigbeeDeviceWithGroup:nodeList:success:failure:
 
(void) - createDpCodeGroupWithName:spaceId:productId:devIds:meshId:success:failure:
 
(void) - getThreadDevListWithProductId:gwId:spaceId:success:failure:
 
(void) - createThreadGroupWithName:spaceId:gwId:productId:devIdList:success:failure:
 
(void) - updateGroupBelong:roomId:success:failure:
 

Detailed Description

Definition at line 14 of file ThingBusinessGroupProtocol.h.

Method Documentation

◆ addZigbeeDeviceWithGroup:nodeList:success:failure: [1/2]

- (void) addZigbeeDeviceWithGroup: (ThingSmartGroup *)  group
nodeList: (NSArray< NSString * > *)  nodeList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 
required

◆ addZigbeeDeviceWithGroup:nodeList:success:failure: [2/2]

- (void) addZigbeeDeviceWithGroup: (ThingSmartGroup *)  group
nodeList: (NSArray< NSString * > *)  nodeList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 
required

◆ createDpCodeGroupWithName:spaceId:productId:devIdList:success:failure: [1/2]

- (void) createDpCodeGroupWithName: (NSString *)  name
spaceId: (long long)  spaceId
productId: (NSString *)  productId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 
required

◆ createDpCodeGroupWithName:spaceId:productId:devIdList:success:failure: [2/2]

- (void) createDpCodeGroupWithName: (NSString *)  name
spaceId: (long long)  spaceId
productId: (NSString *)  productId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 
required

◆ createDpCodeGroupWithName:spaceId:productId:devIds:meshId:success:failure: [1/2]

- (void) createDpCodeGroupWithName: (NSString *)  name
spaceId: (long long)  spaceId
productId: (NSString *)  productId
devIds: (NSArray< NSString * > *)  devIds
meshId: (NSString *)  meshId
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 
required

◆ createDpCodeGroupWithName:spaceId:productId:devIds:meshId:success:failure: [2/2]

- (void) createDpCodeGroupWithName: (NSString *)  name
spaceId: (long long)  spaceId
productId: (NSString *)  productId
devIds: (NSArray< NSString * > *)  devIds
meshId: (NSString *)  meshId
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 
required

◆ createGroupWithName:productId:spaceId:devIdList:success:failure: [1/2]

- (void) createGroupWithName: (NSString *)  name
productId: (NSString *)  productId
spaceId: (long long)  spaceId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 
required

◆ createGroupWithName:productId:spaceId:devIdList:success:failure: [2/2]

- (void) createGroupWithName: (NSString *)  name
productId: (NSString *)  productId
spaceId: (long long)  spaceId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *group))  success
failure: (nullable ThingFailureError failure 
required

◆ createGroupWithName:spaceId:gwId:productId:success:failure: [1/2]

- (void) createGroupWithName: (NSString *)  name
spaceId: (long long)  spaceId
gwId: (NSString *)  gwId
productId: (NSString *)  productId
success: (nullable void(^)(ThingSmartGroup *))  success
failure: (nullable ThingFailureError failure 
required

◆ createGroupWithName:spaceId:gwId:productId:success:failure: [2/2]

- (void) createGroupWithName: (NSString *)  name
spaceId: (long long)  spaceId
gwId: (NSString *)  gwId
productId: (NSString *)  productId
success: (nullable void(^)(ThingSmartGroup *))  success
failure: (nullable ThingFailureError failure 
required

◆ createThreadGroupWithName:spaceId:gwId:productId:devIdList:success:failure: [1/2]

- (void) createThreadGroupWithName: (NSString *)  name
spaceId: (long long)  spaceId
gwId: (NSString *)  gwId
productId: (NSString *)  productId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *))  success
failure: (nullable ThingFailureError failure 
required

◆ createThreadGroupWithName:spaceId:gwId:productId:devIdList:success:failure: [2/2]

- (void) createThreadGroupWithName: (NSString *)  name
spaceId: (long long)  spaceId
gwId: (NSString *)  gwId
productId: (NSString *)  productId
devIdList: (NSArray< NSString * > *)  devIdList
success: (nullable void(^)(ThingSmartGroup *))  success
failure: (nullable ThingFailureError failure 
required

◆ deviceListForCurrentSpace [1/2]

- (NSArray< ThingSmartDeviceModel * > *) deviceListForCurrentSpace
required

◆ deviceListForCurrentSpace [2/2]

- (NSArray< ThingSmartDeviceModel * > *) deviceListForCurrentSpace
required

◆ getCurrentSpaceId [1/2]

- (long long) getCurrentSpaceId
required

◆ getCurrentSpaceId [2/2]

- (long long) getCurrentSpaceId
required

◆ getDevListWithGroup:productId:success:failure: [1/2]

- (void) getDevListWithGroup: (ThingSmartGroup *)  group
productId: (NSString *_Nullable)  productId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 
required

◆ getDevListWithGroup:productId:success:failure: [2/2]

- (void) getDevListWithGroup: (ThingSmartGroup *)  group
productId: (NSString *_Nullable)  productId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 
required

◆ getDevListWithProductId:gwId:spaceId:success:failure: [1/2]

- (void) getDevListWithProductId: (NSString *)  productId
gwId: (NSString *)  gwId
spaceId: (long long)  spaceId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *))  success
failure: (nullable ThingFailureError failure 
required

◆ getDevListWithProductId:gwId:spaceId:success:failure: [2/2]

- (void) getDevListWithProductId: (NSString *)  productId
gwId: (NSString *)  gwId
spaceId: (long long)  spaceId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *))  success
failure: (nullable ThingFailureError failure 
required

◆ getDevListWithProductId:spaceId:success:failure: [1/2]

- (void) getDevListWithProductId: (NSString *)  productId
spaceId: (long long)  spaceId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 
required

◆ getDevListWithProductId:spaceId:success:failure: [2/2]

- (void) getDevListWithProductId: (NSString *)  productId
spaceId: (long long)  spaceId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 
required

◆ getDpCodeDevListWithGroup:success:failure: [1/2]

- (void) getDpCodeDevListWithGroup: (ThingSmartGroup *)  group
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 
required

◆ getDpCodeDevListWithGroup:success:failure: [2/2]

- (void) getDpCodeDevListWithGroup: (ThingSmartGroup *)  group
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 
required

◆ getDpCodeDevListWithSpaceId:productId:success:failure: [1/2]

- (void) getDpCodeDevListWithSpaceId: (long long)  spaceId
productId: (NSString *)  productId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 
required

◆ getDpCodeDevListWithSpaceId:productId:success:failure: [2/2]

- (void) getDpCodeDevListWithSpaceId: (long long)  spaceId
productId: (NSString *)  productId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *list))  success
failure: (nullable ThingFailureError failure 
required

◆ getsubSpaceNameWithDevice: [1/2]

- (NSString *) getsubSpaceNameWithDevice: (ThingSmartDevice *)  device
required

◆ getsubSpaceNameWithDevice: [2/2]

- (NSString *) getsubSpaceNameWithDevice: (ThingSmartDevice *)  device
required

◆ getThreadDevListWithProductId:gwId:spaceId:success:failure: [1/2]

- (void) getThreadDevListWithProductId: (NSString *)  productId
gwId: (NSString *)  gwId
spaceId: (long long)  spaceId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *))  success
failure: (nullable ThingFailureError failure 
required

◆ getThreadDevListWithProductId:gwId:spaceId:success:failure: [2/2]

- (void) getThreadDevListWithProductId: (NSString *)  productId
gwId: (NSString *)  gwId
spaceId: (long long)  spaceId
success: (nullable void(^)(NSArray< ThingSmartGroupDevListModel * > *))  success
failure: (nullable ThingFailureError failure 
required

◆ groupListForCurrentSpace [1/2]

- (NSArray< ThingSmartGroupModel * > *) groupListForCurrentSpace
required

◆ groupListForCurrentSpace [2/2]

- (NSArray< ThingSmartGroupModel * > *) groupListForCurrentSpace
required

◆ removeZigbeeDeviceWithGroup:nodeList:success:failure: [1/2]

- (void) removeZigbeeDeviceWithGroup: (ThingSmartGroup *)  group
nodeList: (NSArray< NSString * > *)  nodeList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 
required

◆ removeZigbeeDeviceWithGroup:nodeList:success:failure: [2/2]

- (void) removeZigbeeDeviceWithGroup: (ThingSmartGroup *)  group
nodeList: (NSArray< NSString * > *)  nodeList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 
required

◆ updateDpCodeGroupRelationsWithGroup:devList:success:failure: [1/2]

- (void) updateDpCodeGroupRelationsWithGroup: (ThingSmartGroup *)  group
devList: (NSArray< NSString * > *)  devList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 
required

◆ updateDpCodeGroupRelationsWithGroup:devList:success:failure: [2/2]

- (void) updateDpCodeGroupRelationsWithGroup: (ThingSmartGroup *)  group
devList: (NSArray< NSString * > *)  devList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 
required

◆ updateGroupBelong:roomId:success:failure: [1/2]

- (void) updateGroupBelong: (ThingSmartGroup *)  group
roomId: (long long)  roomId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureHandler failure 
required

更新群组归属房间

  • Parameters:
    • group: 群组ID
    • roomId: 房间ID
    • success: 成功回调
    • failure: 失败回调

◆ updateGroupBelong:roomId:success:failure: [2/2]

- (void) updateGroupBelong: (ThingSmartGroup *)  group
roomId: (long long)  roomId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureHandler failure 
required

更新群组归属房间

  • Parameters:
    • group: 群组ID
    • roomId: 房间ID
    • success: 成功回调
    • failure: 失败回调

◆ updateGroupRelationsWithGroup:devList:success:failure: [1/2]

- (void) updateGroupRelationsWithGroup: (ThingSmartGroup *)  group
devList: (NSArray< NSString * > *)  devList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 
required

◆ updateGroupRelationsWithGroup:devList:success:failure: [2/2]

- (void) updateGroupRelationsWithGroup: (ThingSmartGroup *)  group
devList: (NSArray< NSString * > *)  devList
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 
required

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