Value <T>
Methods
Subscribe To Change
PUT
SubscribeToChange(ChangeEvent newEvent)
Invoking this method will subscribe the passed method to the Change event; this means that it will get invoked whenever this value changes.
Path Parameters
NewEvent
object
Method we want to invoke when this Value changes.
Set
PUT
Set(object newValue)
Sets a new object as the current Value. It also makes sure that the new value isn't the same so as to not invoke our listeners for no reason.
Path Parameters
NewValue
object
The value we are trying to set as the current.
Get
GET
Get()
Requests the current Value.
Debug
OPTIONS
Debug(bool debugValue, string name)
This method is used to debug all of the values that the Value currently holds; it is mostly used as a convenience when debugging.
Path Parameters
Name
string
Decides what name we will debug in front of the other information.
DebugValue
boolean
Determines if we're only debugging the listeners, or we should add the current value as well.
Last updated
Was this helpful?