Entity object
Definition
An entityObject
reflects the JSON representation of entities from the API, but it is provided with 3 methods that allow interacting with that particular instance.
Example
Suppose that you retrieve data from a device as:
Here, firstDevice
is an object containing all the properties of the dictionary representation of a device from the API:
But, not only this object has the properties shown above, you can also invoke the following methods on firstDevice
:
Entity object methods
Method | Description | Usage | Arguments | Response |
---|---|---|---|---|
| Returns the most recent state of the |
| None |
|
| Updates the |
|
|
|
| Updates the entire |
|
|
|
Last updated