-
public interface IThingGroupModel
Interface for managing group creation and group device list acquisition and group control.
-
-
Method Summary
Modifier and Type Method Description abstract void
createCommonGroup(GroupCreateBuilder builder, IThingResultCallback<Long> callback)
Create common group abstract void
createNewGroup(long mHomeId, String productId, String name, List<String> devIdList, IThingResultCallback<Long> callback)
Create new group. abstract void
createThreadGroup(long gid, String name, String productId, List<String> devIdList, String parentId, IThingResultCallback<GroupRespBean> listener)
create thread group abstract void
getGroupDeviceList(long mHomeId, long groupId, String productId, IThingResultCallback<List<GroupDeviceBean>> callback)
Get group device list. abstract void
getThreadGroupDeviceList(long homeId, long groupId, String productId, String meshId, IThingResultCallback<List<GroupDeviceBean>> listener)
get thread group device list abstract void
createZigbeeEmptyGroup(String productId, long mHomeId, String parentId, int parentType, String name, IThingResultCallback<CloudZigbeeGroupCreateBean> callback)
Create zigBee empty group. abstract void
getZigbeeGroupDeviceList(long mHomeId, long groupId, String productId, String parentId, IThingResultCallback<List<GroupDeviceBean>> callback)
Get zigBee group device list. abstract void
publishZigBeeGroupDps(String devId, String subDevId, String localId, String dps, int type, String mbid, IResultCallback callback)
Send the command to the zigBee group. abstract void
onDestroy()
Recycle and release the resources. -
-
Method Detail
-
createCommonGroup
abstract void createCommonGroup(GroupCreateBuilder builder, IThingResultCallback<Long> callback)
Create common group
- Parameters:
builder
- the create buildercallback
- the callback com.thingclips.smart.home.sdk.callback.IThingResultCallback
-
createNewGroup
abstract void createNewGroup(long mHomeId, String productId, String name, List<String> devIdList, IThingResultCallback<Long> callback)
Create new group.
- Parameters:
mHomeId
- the home idproductId
- the product idname
- the namedevIdList
- the device id listcallback
- the callback com.thingclips.smart.home.sdk.callback.IThingResultCallback
-
createThreadGroup
abstract void createThreadGroup(long gid, String name, String productId, List<String> devIdList, String parentId, IThingResultCallback<GroupRespBean> listener)
create thread group
- Parameters:
name
- group nameproductId
- product iddevIdList
- device idsparentId
- parent idlistener
- the callback com.thingclips.smart.home.sdk.callback.IThingResultCallback
-
getGroupDeviceList
abstract void getGroupDeviceList(long mHomeId, long groupId, String productId, IThingResultCallback<List<GroupDeviceBean>> callback)
Get group device list.
- Parameters:
mHomeId
- the home idgroupId
- the group idproductId
- the product idcallback
- the callback com.thingclips.smart.home.sdk.callback.IThingResultCallback
-
getThreadGroupDeviceList
abstract void getThreadGroupDeviceList(long homeId, long groupId, String productId, String meshId, IThingResultCallback<List<GroupDeviceBean>> listener)
get thread group device list
- Parameters:
homeId
- home idgroupId
- group idproductId
- product idmeshId
- mesh idlistener
- the callback com.thingclips.smart.home.sdk.callback.IThingResultCallback
-
createZigbeeEmptyGroup
abstract void createZigbeeEmptyGroup(String productId, long mHomeId, String parentId, int parentType, String name, IThingResultCallback<CloudZigbeeGroupCreateBean> callback)
Create zigBee empty group.
- Parameters:
productId
- the product idmHomeId
- the home idparentId
- the parent idparentType
- the parent typename
- the namecallback
- the callback com.thingclips.smart.home.sdk.callback.IThingResultCallback
-
getZigbeeGroupDeviceList
abstract void getZigbeeGroupDeviceList(long mHomeId, long groupId, String productId, String parentId, IThingResultCallback<List<GroupDeviceBean>> callback)
Get zigBee group device list.
- Parameters:
mHomeId
- the home idgroupId
- the group idproductId
- the product idparentId
- the parent idcallback
- the callback com.thingclips.smart.home.sdk.callback.IThingResultCallback
-
publishZigBeeGroupDps
abstract void publishZigBeeGroupDps(String devId, String subDevId, String localId, String dps, int type, String mbid, IResultCallback callback)
Send the command to the zigBee group.
- Parameters:
devId
- the device idsubDevId
- the sub device idlocalId
- the nodeId getNodeIddps
- the data pointstype
- the type getType]mbid
- the localId ) the callback { }
-
onDestroy
abstract void onDestroy()
Recycle and release the resources.
-
-
-
-