public class TwinProperties extends Object implements Serializable
The Properties on the TwinState shall contains one TwinCollection
of desired property.
The desired property is a collection that can contain a associated TwinMetadata
.
These metadata are provided by the Service and contains information about the last updated date time, and version.
For instance, the following is a valid desired property, represented as
properties.desired
in the rest API.
{
"desired": {
"MaxSpeed":{
"Value":500,
"NewValue":300
},
"$metadata":{
"$lastUpdated":"2017-09-21T02:07:44.238Z",
"$lastUpdatedVersion":4,
"MaxSpeed":{
"$lastUpdated":"2017-09-21T02:07:44.238Z",
"$lastUpdatedVersion":4,
"Value":{
"$lastUpdated":"2017-09-21T02:07:44.238Z",
"$lastUpdatedVersion":4
},
"NewValue":{
"$lastUpdated":"2017-09-21T02:07:44.238Z",
"$lastUpdatedVersion":4
}
}
},
"$version":4
}
}
Copyright © 2022. All rights reserved.