Package buzz.getcoco.iot.android
Class DeviceEx
- java.lang.Object
-
- buzz.getcoco.iot.Device
-
- buzz.getcoco.iot.android.DeviceEx
-
- All Implemented Interfaces:
java.lang.Iterable<buzz.getcoco.iot.Resource>
public class DeviceEx extends buzz.getcoco.iot.Device
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class buzz.getcoco.iot.Device
buzz.getcoco.iot.Device.AddResource, buzz.getcoco.iot.Device.AddResourceListener, buzz.getcoco.iot.Device.CommandId, buzz.getcoco.iot.Device.ConfigureWiFi, buzz.getcoco.iot.Device.DeviceManagementStatusListener, buzz.getcoco.iot.Device.DiscoverResource, buzz.getcoco.iot.Device.DiscoverResourceListener, buzz.getcoco.iot.Device.ForceRemoveResource, buzz.getcoco.iot.Device.InfoRequestListener, buzz.getcoco.iot.Device.InfoRequestStatusListener, buzz.getcoco.iot.Device.InfoResponseStatusListener, buzz.getcoco.iot.Device.MessageListener, buzz.getcoco.iot.Device.RemoveResource, buzz.getcoco.iot.Device.RemoveResourceListener, buzz.getcoco.iot.Device.SetResourceMetadata, buzz.getcoco.iot.Device.SetResourceName
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceEx(long deviceNodeId, buzz.getcoco.iot.Network parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description androidx.lifecycle.LiveData<java.lang.String>getDeviceNameObservable()androidx.lifecycle.LiveData<buzz.getcoco.iot.Device>getDeviceRemovalObservable()androidx.lifecycle.LiveData<java.lang.Boolean>getDeviceStateObservable()IdentifiergetIdentifier()protected voidinternalRemoveDevice()protected voidinternalSetName(java.lang.String deviceName)protected voidinternalSetReady(boolean ready)java.lang.StringtoString()-
Methods inherited from class buzz.getcoco.iot.Device
addTuyaResource, addZigbeeResource, addZwaveResource, configureWiFi, containsResource, discoverResources, discoverResources, forceRemoveResource, getAvailableChannelPorts, getDevicePsn, getFirmwareVersion, getId, getMake, getModel, getName, getParent, getPowerSource, getProductName, getReceiverType, getResource, getResourceMap, getSupportedProtocols, hashCode, internalAddResource, internalRemoveResource, internalSetDevicePsn, internalSetExtendable, internalSetFirmwareVersion, internalSetMake, internalSetModel, internalSetParent, internalSetPowerSource, internalSetProductName, internalSetProtocolSupported, internalSetReceiverType, isExtendable, isReady, iterator, reboot, removeResource, sendDeviceManagementCommand, sendInfoRequest, sendInfoResponse, setResourceMetadata, setResourceName, supportsProtocol
-
-
-
-
Method Detail
-
internalSetName
protected void internalSetName(java.lang.String deviceName)
- Overrides:
internalSetNamein classbuzz.getcoco.iot.Device
-
internalSetReady
protected void internalSetReady(boolean ready)
- Overrides:
internalSetReadyin classbuzz.getcoco.iot.Device
-
internalRemoveDevice
protected void internalRemoveDevice()
- Overrides:
internalRemoveDevicein classbuzz.getcoco.iot.Device
-
getDeviceRemovalObservable
public androidx.lifecycle.LiveData<buzz.getcoco.iot.Device> getDeviceRemovalObservable()
-
getDeviceStateObservable
public androidx.lifecycle.LiveData<java.lang.Boolean> getDeviceStateObservable()
-
getDeviceNameObservable
public androidx.lifecycle.LiveData<java.lang.String> getDeviceNameObservable()
-
getIdentifier
public Identifier getIdentifier()
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toStringin classbuzz.getcoco.iot.Device
-
-