-
public class GroupBeanAn entity that describes group information.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intTYPE_WIFIpublic final static intTYPE_BLE_MESHpublic final static intTYPE_ZIGBEEpublic final static intTYPE_SIGMESHpublic final static intTYPE_SIG_MESHpublic final static intTYPE_BEACONpublic final static intTYPE_THREADpublic final static intTYPE_BEACON2private longidprivate booleanisShareprivate Stringnameprivate StringdevIdprivate StringproductIdprivate StringiconUrlprivate longtimeprivate StringlocalIdprivate Stringcategoryprivate List<String>devIdsprivate List<DeviceBean>deviceBeansprivate StringmeshIdprivate intdisplayOrderprivate inthomeDisplayOrderprivate StringgroupKeyprivate booleanstandardprivate Map<String, String>dpNameprivate Map<String, Object>dpsprivate Stringpvprivate StringlocalKeyprivate inttypeprivate intgroupTypeprivate Map<String, Object>dpCodesprivate intdeviceNumprivate StringproductVer
-
Method Summary
Modifier and Type Method Description longgetId()Get group id. voidsetId(long id)Set group id. booleanisShare()Is share boolean. voidsetIsShare(boolean isShare)Set share. StringgetName()Get group name. voidsetName(String name)Set group name. StringgetDevId()voidsetDevId(String devId)StringgetProductId()Get product id. voidsetProductId(String productId)Set product id. StringgetIconUrl()Get icon url. voidsetIconUrl(String iconUrl)Set icon url. longgetTime()Get group creation time. voidsetTime(long time)Set group creation time. StringgetLocalId()Get local id. voidsetLocalId(String localId)Set local id. StringgetCategory()Get category. voidsetCategory(String category)Set category. List<String>getDevIds()Get the list of device ids within the group. voidsetDevIds(List<String> devIds)Set the list of devices ids within a group. List<DeviceBean>getDeviceBeans()Get the device entity list under the same Group ID. voidsetDeviceBeans(List<DeviceBean> deviceBeans)Set the device entity list under the same Group ID. StringgetMeshId()Get mesh id. voidsetMeshId(String meshId)Set mesh id. intgetDisplayOrder()Get display order. voidsetDisplayOrder(int displayOrder)Set display order. intgetHomeDisplayOrder()Get home display order. voidsetHomeDisplayOrder(int homeDisplayOrder)Set home display order. StringgetGroupKey()voidsetGroupKey(String groupKey)voidsetStandard(boolean standard)Set is standard data point code. Map<String, String>getDpName()Get group data point names. voidsetDpName(Map<String, String> dpName)Set group data point names. Map<String, Object>getDps()Get data points. voidsetDps(Map<String, Object> dps)Set data points. StringgetPv()Get pv. voidsetPv(String pv)Set pv. StringgetLocalKey()Get local key. voidsetLocalKey(String localKey)Set local key. intgetType()Get type. voidsetType(int type)Set type. intgetGroupType()voidsetGroupType(int groupType)Map<String, Object>getDpCodes()Get group data point codes, such as "switch_led:true". voidsetDpCodes(Map<String, Object> dpCodes)Set group data point codes. intgetDeviceNum()Get the number of group devices. voidsetDeviceNum(int deviceNum)Set the number of group devices. StringgetProductVer()voidsetProductVer(String productVer)booleanisStandard()Get code describe is standard data point. voidsetShare(boolean share)Set share. booleangetIsOnline()Describes whether a device is online in a group. booleanisBeaconGroup()-
-
Method Detail
-
getId
long getId()
Get group id.
-
setId
void setId(long id)
Set group id.
- Parameters:
id- group id
-
isShare
boolean isShare()
Is share boolean.
-
setIsShare
void setIsShare(boolean isShare)
Set share.
- Parameters:
isShare- whether to set the group as a shared group
-
getName
String getName()
Get group name.
-
setName
void setName(String name)
Set group name.
- Parameters:
name- the group name
-
getDevId
String getDevId()
-
setDevId
void setDevId(String devId)
-
getProductId
String getProductId()
Get product id.
-
setProductId
void setProductId(String productId)
Set product id.
- Parameters:
productId- same product ID, same Schema information
-
getIconUrl
String getIconUrl()
Get icon url.
-
setIconUrl
void setIconUrl(String iconUrl)
Set icon url.
- Parameters:
iconUrl- the url of the device icon
-
getTime
long getTime()
Get group creation time.
-
setTime
void setTime(long time)
Set group creation time.
- Parameters:
time- group creation time
-
getLocalId
String getLocalId()
Get local id.
-
setLocalId
void setLocalId(String localId)
Set local id.
- Parameters:
localId- used to distinguish the unique identity of each mesh group in the mesh network
-
getCategory
String getCategory()
Get category.
-
setCategory
void setCategory(String category)
Set category.
- Parameters:
category- category mark of equipment
-
getDevIds
List<String> getDevIds()
Get the list of device ids within the group.
-
setDevIds
void setDevIds(List<String> devIds)
Set the list of devices ids within a group.
- Parameters:
devIds- the collection of all device ids within a group
-
getDeviceBeans
List<DeviceBean> getDeviceBeans()
Get the device entity list under the same Group ID.
-
setDeviceBeans
void setDeviceBeans(List<DeviceBean> deviceBeans)
Set the device entity list under the same Group ID.
- Parameters:
deviceBeans- the device entity list under the same Group ID
-
getMeshId
String getMeshId()
Get mesh id.
-
setMeshId
void setMeshId(String meshId)
Set mesh id.
- Parameters:
meshId- the gateway id
-
getDisplayOrder
int getDisplayOrder()
Get display order.
-
setDisplayOrder
void setDisplayOrder(int displayOrder)
Set display order.
- Parameters:
displayOrder- describes the value of a room sort
-
getHomeDisplayOrder
int getHomeDisplayOrder()
Get home display order.
-
setHomeDisplayOrder
void setHomeDisplayOrder(int homeDisplayOrder)
Set home display order.
- Parameters:
homeDisplayOrder- describes a home device sort value
-
getGroupKey
String getGroupKey()
-
setGroupKey
void setGroupKey(String groupKey)
-
setStandard
void setStandard(boolean standard)
Set is standard data point code.
- Parameters:
standard- is standard data point code
-
getDpName
Map<String, String> getDpName()
Get group data point names.
-
setDpName
void setDpName(Map<String, String> dpName)
Set group data point names.
- Parameters:
dpName- group data point names
-
getDps
Map<String, Object> getDps()
Get data points.
-
setDps
void setDps(Map<String, Object> dps)
Set data points.
- Parameters:
dps- data points
-
getPv
String getPv()
Get pv.
-
setPv
void setPv(String pv)
Set pv.
- Parameters:
pv- gateway protocol version
-
getLocalKey
String getLocalKey()
Get local key.
-
setLocalKey
void setLocalKey(String localKey)
Set local key.
- Parameters:
localKey- local secret key
-
getType
@Deprecated() int getType()
Get type.TYPE_WIFI = 0, TYPE_BLE_MESH = 1, TYPE_ZIGBEE = 2use groupType instead
-
setType
@Deprecated() void setType(int type)
Set type.
- Parameters:
type- describe group type
-
getGroupType
int getGroupType()
-
setGroupType
void setGroupType(int groupType)
-
getDpCodes
Map<String, Object> getDpCodes()
Get group data point codes, such as "switch_led:true".
The code defined by the group for each function point may be different,depending on the background definition during firmware development.
-
setDpCodes
void setDpCodes(Map<String, Object> dpCodes)
Set group data point codes.
- Parameters:
dpCodes- group data point codes
-
getDeviceNum
int getDeviceNum()
Get the number of group devices.
-
setDeviceNum
void setDeviceNum(int deviceNum)
Set the number of group devices.
- Parameters:
deviceNum- the number of group devices
-
getProductVer
String getProductVer()
-
setProductVer
void setProductVer(String productVer)
-
isStandard
boolean isStandard()
Get code describe is standard data point.
-
setShare
void setShare(boolean share)
Set share.
- Parameters:
share- whether to set the group as a shared group
-
getIsOnline
boolean getIsOnline()
Describes whether a device is online in a group.
-
isBeaconGroup
boolean isBeaconGroup()
-
-
-
-