Package buzz.getcoco.iot.android
Class AttributeEx
- java.lang.Object
-
- buzz.getcoco.iot.Attribute
-
- buzz.getcoco.iot.android.AttributeEx
-
public class AttributeEx extends buzz.getcoco.iot.Attribute
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttributeEx.ApplianceInfostatic classAttributeEx.CapabilityAttributesstatic classAttributeEx.CapabilityCommandsstatic classAttributeEx.ModesAttributeValue
-
Constructor Summary
Constructors Modifier Constructor Description protectedAttributeEx(int id, buzz.getcoco.iot.Capability parent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeEx.ApplianceInfo[]getAsApplianceInfo()static buzz.getcoco.iot.Capability.AttributeIdgetAttributeId(int attributeId, int capabilityId)androidx.lifecycle.LiveData<java.lang.Object>getCurrentValueObservable()androidx.lifecycle.LiveData<java.lang.Object>getDefaultValueObservable()IdentifiergetIdentifier()androidx.lifecycle.LiveData<java.lang.String>getNameObservable()protected buzz.getcoco.iot.NetworkgetParentNetwork()ResourceExgetParentResource()protected voidinternalSetCurrentValue(java.lang.Object currentValue)protected voidinternalSetDefaultValue(java.lang.Object defaultValue)protected voidinternalSetMaxValue(java.lang.Object maxValue)protected voidinternalSetMinValue(java.lang.Object minValue)protected voidinternalSetName(java.lang.String name)protected voidinternalSetParent(buzz.getcoco.iot.Capability parent)protected voidsyncCurrentValue()-
Methods inherited from class buzz.getcoco.iot.Attribute
getArrayLength, getAsBoolean, getAsBooleanArr, getAsNumber, getAsNumberArr, getAsString, getAsStringArr, getCurrentValue, getDataType, getDefaultValue, getDescription, getElement, getId, getMapKey, getMaxReportingInterval, getMaxValue, getMinReportingInterval, getMinValue, getName, getParent, hashCode, internalMarkAsReady, internalSetArrayLength, internalSetDataType, internalSetDescription, internalSetMaxReportingInterval, internalSetMinReportingInterval, internalSetRealtimeUpdate, isBooleanValue, isNumberValue, isReady, isRealTimeUpdate, isStringValue, toString
-
-
-
-
Method Detail
-
getParentNetwork
protected buzz.getcoco.iot.Network getParentNetwork()
-
syncCurrentValue
protected void syncCurrentValue()
-
getParentResource
@Nullable public ResourceEx getParentResource()
-
internalSetName
protected void internalSetName(java.lang.String name)
- Overrides:
internalSetNamein classbuzz.getcoco.iot.Attribute
-
internalSetMinValue
protected void internalSetMinValue(java.lang.Object minValue)
- Overrides:
internalSetMinValuein classbuzz.getcoco.iot.Attribute
-
internalSetMaxValue
protected void internalSetMaxValue(java.lang.Object maxValue)
- Overrides:
internalSetMaxValuein classbuzz.getcoco.iot.Attribute
-
internalSetCurrentValue
protected void internalSetCurrentValue(java.lang.Object currentValue)
- Overrides:
internalSetCurrentValuein classbuzz.getcoco.iot.Attribute
-
internalSetDefaultValue
protected void internalSetDefaultValue(java.lang.Object defaultValue)
- Overrides:
internalSetDefaultValuein classbuzz.getcoco.iot.Attribute
-
internalSetParent
protected void internalSetParent(buzz.getcoco.iot.Capability parent)
- Overrides:
internalSetParentin classbuzz.getcoco.iot.Attribute
-
getNameObservable
public androidx.lifecycle.LiveData<java.lang.String> getNameObservable()
-
getCurrentValueObservable
public androidx.lifecycle.LiveData<java.lang.Object> getCurrentValueObservable()
-
getDefaultValueObservable
public androidx.lifecycle.LiveData<java.lang.Object> getDefaultValueObservable()
-
getAttributeId
public static buzz.getcoco.iot.Capability.AttributeId getAttributeId(int attributeId, int capabilityId)
-
getIdentifier
public Identifier getIdentifier()
-
getAsApplianceInfo
public AttributeEx.ApplianceInfo[] getAsApplianceInfo()
-
-