Represents an update to a value subscription.

Static Properties

TIME_ZONE → String

DSA formatted timezone.

final

Static Methods

getTs() → String

Generates a timestamp in the proper DSA format.

Constructors

ValueUpdate(Object value, { String ts, Map meta, String status, int count: 1, num sum: double.NAN, num min: double.NAN, num max: double.NAN })

ValueUpdate.merge(ValueUpdate oldUpdate, ValueUpdate newUpdate)

Properties

count → int

How many updates have happened since the last response.

read / write
created → DateTime

The timestamp for when this value update was created.

read / write
latency → Duration

Calculates the latency

read-only
max → num

The maximum value if one or more numeric values has been skipped.

read / write
min → num

The minimum value if one or more numeric values has been skipped.

read / write
status → String

The current status of this value.

read / write
storedData → Object

could be the value or the key stored by ValueStorage

read / write
sum → num

The sum value if one or more numeric values has been skipped.

read / write
timestamp → DateTime

Gets a DateTime representation of the timestamp for this value.

read-only
ts → String

A String representation of the timestamp for this value.

read / write
value → Object

The value for this update.

read / write
waitingAck → int

The id of the ack we are waiting for.

read / write
hashCode → int

The hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

cloneForAckQueue() ValueUpdate

equals(ValueUpdate other) → bool

mergeAdd(ValueUpdate newUpdate) → void

merge the new update into existing instance

toMap() → Map

Generates a map representation of this value update.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited