TwinProperty 类

定义

INNER TWINPARSER CLASS

TwinProperty is a representation of the device twin property collection. It can represent `Desired` property as well `Reported` property.

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>As of release 0.4.0, replaced by <xref uid="com.microsoft.azure.sdk.iot.deps.twin.TwinCollection" data-throw-if-not-resolved="false" data-raw-source="com.microsoft.azure.sdk.iot.deps.twin.TwinCollection"></xref></p>

</xrefdescription>

public class TwinProperty
继承
java.lang.Object
TwinProperty

构造函数

TwinProperty()

方法

addProperty(String key, Object value, Integer propertyVersion)
enableMetadata()
get(String key)
getMetadata(String key)
getPropertyMap()
getVersion()
size()
toJson()
toJsonElement()
update(Map<String, Object> jsonTree, TwinChangedCallback onCallback)
update(Map<String, Object> property)
update(String json, TwinChangedCallback onCallback)
validate(Map<String, Object> property)

适用于