public class Mesh
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addDevice(DeviceId deviceId,
DeviceConnection connection,
MeshManager.MeshCallback<java.lang.Boolean> callback)
Adds new device to this mesh.
|
java.util.List<DeviceId> |
getDevices()
Getter for current devices in mesh
|
java.lang.Integer |
getId()
Getter for mesh id
|
java.lang.String |
getName()
Getter for mesh name
|
void |
removeDevice(DeviceId deviceId,
DeviceConnection connection,
MeshManager.MeshCallback<java.lang.Boolean> callback)
Removes device from this mesh
|
public Mesh(MeshInfo mesh)
public void addDevice(DeviceId deviceId, DeviceConnection connection, MeshManager.MeshCallback<java.lang.Boolean> callback)
deviceId - id of device to addconnection - current open connection to device being addedcallback - callback to return when operation finishespublic void removeDevice(DeviceId deviceId, DeviceConnection connection, MeshManager.MeshCallback<java.lang.Boolean> callback)
deviceId - device to removeconnection - current open connection to device being removedcallback - callback to return when operation finishespublic java.lang.String getName()
public java.lang.Integer getId()
public java.util.List<DeviceId> getDevices()