Package buzz.getcoco.iot.android
Class NetworkEx
- java.lang.Object
-
- buzz.getcoco.iot.Network
-
- buzz.getcoco.iot.android.NetworkEx
-
- All Implemented Interfaces:
java.lang.Iterable<buzz.getcoco.iot.Device>
public class NetworkEx extends buzz.getcoco.iot.Network
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class buzz.getcoco.iot.Network
buzz.getcoco.iot.Network.AccessType, buzz.getcoco.iot.Network.AddResourcesToZone, buzz.getcoco.iot.Network.AddSceneResourceAction, buzz.getcoco.iot.Network.AssignToTemplate, buzz.getcoco.iot.Network.CommandId, buzz.getcoco.iot.Network.ConnectArgs, buzz.getcoco.iot.Network.LeaveStatusListener, buzz.getcoco.iot.Network.MoveResourcesBetweenZones, buzz.getcoco.iot.Network.NetworkManagementStatusListener, buzz.getcoco.iot.Network.NetworkType, buzz.getcoco.iot.Network.RemoveResourcesFromZone, buzz.getcoco.iot.Network.RemoveRule, buzz.getcoco.iot.Network.RemoveScene, buzz.getcoco.iot.Network.RemoveSceneResourceActions, buzz.getcoco.iot.Network.RemoveZone, buzz.getcoco.iot.Network.ResourceTemplate, buzz.getcoco.iot.Network.SaveRule, buzz.getcoco.iot.Network.SaveSceneResourceActions, buzz.getcoco.iot.Network.SceneResourceActions, buzz.getcoco.iot.Network.SetRule, buzz.getcoco.iot.Network.SetScene, buzz.getcoco.iot.Network.SetSceneMetadata, buzz.getcoco.iot.Network.SetZone, buzz.getcoco.iot.Network.State, buzz.getcoco.iot.Network.UpdateSceneResourceActions, buzz.getcoco.iot.Network.UserRole
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNetworkEx(java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description androidx.lifecycle.LiveData<buzz.getcoco.iot.ConnectivityStateManager.State>getConnectivityManageStateObservable()androidx.lifecycle.LiveData<java.util.List<D>>getDeviceListObservable()IdentifiergetIdentifier()androidx.lifecycle.LiveData<java.lang.String>getNetworkNameObservable()androidx.lifecycle.LiveData<java.lang.Boolean>getRemoveNetworkObservable()androidx.lifecycle.LiveData<java.util.List<R>>getRuleListObservable()androidx.lifecycle.LiveData<java.util.List<S>>getSceneListObservable()java.util.List<D>getSortedDeviceList()java.util.List<R>getSortedRuleList()java.util.List<S>getSortedSceneList()java.util.List<Z>getSortedZoneList()androidx.lifecycle.LiveData<buzz.getcoco.iot.Network.State>getStateObservable()androidx.lifecycle.LiveData<java.util.List<Z>>getZoneListObservable()NOTE: This will remove the default zone, if it has no resourcesprotected voidinternalAddDevice(buzz.getcoco.iot.Device device)protected voidinternalAddRule(buzz.getcoco.iot.Rule rule)protected voidinternalAddScene(buzz.getcoco.iot.Scene scene)protected voidinternalAddZone(buzz.getcoco.iot.Zone zone)protected voidinternalRemoveDevice(long deviceNodeId)protected voidinternalRemoveNetwork()protected voidinternalRemoveRule(int ruleId)protected voidinternalRemoveScene(int sceneId)protected voidinternalRemoveZone(int zoneId)protected voidinternalSetConnectivityState(buzz.getcoco.iot.ConnectivityStateManager.State connectivityState)protected voidinternalSetName(java.lang.String name)protected voidinternalSetState(buzz.getcoco.iot.Network.State state)protected voidonDeviceNameUpdated(buzz.getcoco.iot.Device device)protected voidonRuleNameUpdated(buzz.getcoco.iot.Rule rule)protected voidonSceneNameUpdated(buzz.getcoco.iot.Scene scene)protected voidonZoneNameUpdated(buzz.getcoco.iot.Zone zone)protected voidonZoneUpdated(ZoneEx zone)protected voidpostSortedDevices()protected voidpostSortedRules()protected voidpostSortedScenes()protected voidpostSortedZones()java.lang.StringtoString()-
Methods inherited from class buzz.getcoco.iot.Network
connect, connect, connectWithInvite, connectWithInvite, containsClearFlag, containsDevice, containsRule, containsScene, containsZone, createClearOnDisconnectionFlag, createRule, createScene, createZone, deleteRule, deleteRule, deleteScene, deleteScene, deleteZone, deleteZone, disconnect, getAccessType, getConnectivityManagerState, getDevice, getDeviceIterable, getDeviceMap, getId, getMetadata, getName, getNetworkType, getResourceTemplates, getRule, getRuleIterable, getRuleMap, getScene, getSceneIterable, getSceneMap, getState, getUserRole, getZone, getZoneIterable, getZoneMap, hashCode, internalSetAccessType, internalSetMetadata, internalSetNetworkType, internalSetResourceTemplates, internalSetUserRole, iterator, leave, moveResources, restoreNetworkState, saveState, sendContentInfo, sendData, sendNetworkManagementCommand
-
-
-
-
Method Detail
-
internalAddDevice
protected void internalAddDevice(buzz.getcoco.iot.Device device)
- Overrides:
internalAddDevicein classbuzz.getcoco.iot.Network
-
internalRemoveDevice
protected void internalRemoveDevice(long deviceNodeId)
- Overrides:
internalRemoveDevicein classbuzz.getcoco.iot.Network
-
internalAddZone
protected void internalAddZone(buzz.getcoco.iot.Zone zone)
- Overrides:
internalAddZonein classbuzz.getcoco.iot.Network
-
internalRemoveZone
protected void internalRemoveZone(int zoneId)
- Overrides:
internalRemoveZonein classbuzz.getcoco.iot.Network
-
internalAddRule
protected void internalAddRule(buzz.getcoco.iot.Rule rule)
- Overrides:
internalAddRulein classbuzz.getcoco.iot.Network
-
internalRemoveRule
protected void internalRemoveRule(int ruleId)
- Overrides:
internalRemoveRulein classbuzz.getcoco.iot.Network
-
internalAddScene
protected void internalAddScene(buzz.getcoco.iot.Scene scene)
- Overrides:
internalAddScenein classbuzz.getcoco.iot.Network
-
internalRemoveScene
protected void internalRemoveScene(int sceneId)
- Overrides:
internalRemoveScenein classbuzz.getcoco.iot.Network
-
internalSetName
protected void internalSetName(java.lang.String name)
- Overrides:
internalSetNamein classbuzz.getcoco.iot.Network
-
internalSetState
protected void internalSetState(buzz.getcoco.iot.Network.State state)
- Overrides:
internalSetStatein classbuzz.getcoco.iot.Network
-
internalRemoveNetwork
protected void internalRemoveNetwork()
- Overrides:
internalRemoveNetworkin classbuzz.getcoco.iot.Network
-
onZoneUpdated
protected void onZoneUpdated(@NonNull ZoneEx zone)
-
onSceneNameUpdated
protected void onSceneNameUpdated(buzz.getcoco.iot.Scene scene)
-
onRuleNameUpdated
protected void onRuleNameUpdated(buzz.getcoco.iot.Rule rule)
-
onZoneNameUpdated
protected void onZoneNameUpdated(buzz.getcoco.iot.Zone zone)
-
onDeviceNameUpdated
protected void onDeviceNameUpdated(buzz.getcoco.iot.Device device)
-
internalSetConnectivityState
protected void internalSetConnectivityState(buzz.getcoco.iot.ConnectivityStateManager.State connectivityState)
- Overrides:
internalSetConnectivityStatein classbuzz.getcoco.iot.Network
-
getIdentifier
public Identifier getIdentifier()
-
getSortedDeviceList
public java.util.List<D> getSortedDeviceList()
-
getSortedZoneList
public java.util.List<Z> getSortedZoneList()
-
getSortedRuleList
public java.util.List<R> getSortedRuleList()
-
getSortedSceneList
public java.util.List<S> getSortedSceneList()
-
postSortedZones
protected void postSortedZones()
-
postSortedScenes
protected void postSortedScenes()
-
postSortedRules
protected void postSortedRules()
-
postSortedDevices
protected void postSortedDevices()
-
getDeviceListObservable
public androidx.lifecycle.LiveData<java.util.List<D>> getDeviceListObservable()
-
getZoneListObservable
public androidx.lifecycle.LiveData<java.util.List<Z>> getZoneListObservable()
NOTE: This will remove the default zone, if it has no resources
-
getRuleListObservable
public androidx.lifecycle.LiveData<java.util.List<R>> getRuleListObservable()
-
getSceneListObservable
public androidx.lifecycle.LiveData<java.util.List<S>> getSceneListObservable()
-
getNetworkNameObservable
public androidx.lifecycle.LiveData<java.lang.String> getNetworkNameObservable()
-
getStateObservable
public androidx.lifecycle.LiveData<buzz.getcoco.iot.Network.State> getStateObservable()
-
getRemoveNetworkObservable
public androidx.lifecycle.LiveData<java.lang.Boolean> getRemoveNetworkObservable()
-
getConnectivityManageStateObservable
public androidx.lifecycle.LiveData<buzz.getcoco.iot.ConnectivityStateManager.State> getConnectivityManageStateObservable()
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toStringin classbuzz.getcoco.iot.Network
-
-