-
public class GroupBean
An entity that describes group information.
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
TYPE_WIFI
public final static int
TYPE_BLE_MESH
public final static int
TYPE_ZIGBEE
public final static int
TYPE_SIGMESH
public final static int
TYPE_SIG_MESH
public final static int
TYPE_BEACON
public final static int
TYPE_THREAD
public final static int
TYPE_BEACON2
private long
id
private boolean
isShare
private String
name
private String
devId
private String
productId
private String
iconUrl
private long
time
private String
localId
private String
category
private List<String>
devIds
private List<DeviceBean>
deviceBeans
private String
meshId
private int
displayOrder
private int
homeDisplayOrder
private String
groupKey
private boolean
standard
private Map<String, String>
dpName
private Map<String, Object>
dps
private String
pv
private String
localKey
private int
type
private int
groupType
private Map<String, Object>
dpCodes
private int
deviceNum
private String
productVer
-
Method Summary
Modifier and Type Method Description long
getId()
Get group id. void
setId(long id)
Set group id. boolean
isShare()
Is share boolean. void
setIsShare(boolean isShare)
Set share. String
getName()
Get group name. void
setName(String name)
Set group name. String
getDevId()
void
setDevId(String devId)
String
getProductId()
Get product id. void
setProductId(String productId)
Set product id. String
getIconUrl()
Get icon url. void
setIconUrl(String iconUrl)
Set icon url. long
getTime()
Get group creation time. void
setTime(long time)
Set group creation time. String
getLocalId()
Get local id. void
setLocalId(String localId)
Set local id. String
getCategory()
Get category. void
setCategory(String category)
Set category. List<String>
getDevIds()
Get the list of device ids within the group. void
setDevIds(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. void
setDeviceBeans(List<DeviceBean> deviceBeans)
Set the device entity list under the same Group ID. String
getMeshId()
Get mesh id. void
setMeshId(String meshId)
Set mesh id. int
getDisplayOrder()
Get display order. void
setDisplayOrder(int displayOrder)
Set display order. int
getHomeDisplayOrder()
Get home display order. void
setHomeDisplayOrder(int homeDisplayOrder)
Set home display order. String
getGroupKey()
void
setGroupKey(String groupKey)
void
setStandard(boolean standard)
Set is standard data point code. Map<String, String>
getDpName()
Get group data point names. void
setDpName(Map<String, String> dpName)
Set group data point names. Map<String, Object>
getDps()
Get data points. void
setDps(Map<String, Object> dps)
Set data points. String
getPv()
Get pv. void
setPv(String pv)
Set pv. String
getLocalKey()
Get local key. void
setLocalKey(String localKey)
Set local key. int
getType()
Get type. void
setType(int type)
Set type. int
getGroupType()
void
setGroupType(int groupType)
Map<String, Object>
getDpCodes()
Get group data point codes, such as "switch_led:true". void
setDpCodes(Map<String, Object> dpCodes)
Set group data point codes. int
getDeviceNum()
Get the number of group devices. void
setDeviceNum(int deviceNum)
Set the number of group devices. String
getProductVer()
void
setProductVer(String productVer)
boolean
isStandard()
Get code describe is standard data point. void
setShare(boolean share)
Set share. boolean
getIsOnline()
Describes whether a device is online in a group. boolean
isBeaconGroup()
-
-
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()
-
-
-
-