public class RawReading
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
meaning
Every device has a
DeviceModel which defines all device readings. |
java.lang.String |
path
If device contains multiple levels of readings (more than one component)
they will be identified with the path.
|
java.lang.String |
received
ISO timestamp - when reading is received on the platform
|
java.lang.String |
recorded
ISO timestamp - when reading is recorded on the device
|
java.lang.Object |
value
Reading value is determined by
DeviceReading.getValueSchema() |
| Constructor and Description |
|---|
RawReading(java.lang.String meaning,
java.lang.String path,
java.lang.String received,
java.lang.String recorded,
java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
long |
getReceived()
UTC timestamp - when reading is recorded on the platform
|
long |
getRecorded()
UTC timestamp - when reading is recorded on the device
|
java.lang.String |
toString() |
public final java.lang.String meaning
DeviceModel which defines all device readings.
Every DeviceReading has a DeviceReading.meaning.
Details for every reading can be found in DeviceReading.getValueSchema()
Details about device readings can be obtained using DeviceModelCache.getModelById(String)
where modelId is Device.getModelId().public final java.lang.String path
public final java.lang.Object value
DeviceReading.getValueSchema()public final java.lang.String received
public final java.lang.String recorded