Constructor
new SFSRoomVariable(name, value, type)
Pass the instance to the SetRoomVariablesRequest constructor.
| Name | Type | Description |
|---|---|---|
name | string | The name of the Room Variable. |
value | boolean | | The value of the Room Variable. |
type | number | The type of the Room Variable, among those available in the VariableType class. |
Extends
Members
(readonly) isNull :boolean
null value.- boolean
- Overrides
(readonly) isPersistent :boolean
A persistent Room Variable continues to exist in the Room after the User which created it has left the Room and until it disconnects.
Setting this property manually on an existing Room Variable returned by the API has no effect on the server and can disrupt the API functioning. This flag can be set after the Room Variable object is created using the constructor only.
- boolean
(readonly) isPrivate :boolean
A private Room Variable is visible to all Users in the same Room, but it can be modified by its owner only (the User that created it).
Setting this property manually on an existing Room Variable returned by the API has no effect on the server and can disrupt the API functioning. This flag can be set after the Room Variable object is created using the constructor only.
- boolean
(readonly) name :string
- string
- Overrides
(readonly) type :string
Returned value is the name of one of the types defined in the VariableType class.
- string
- Overrides
- See
(readonly) value :*
- *
- Overrides
Methods
toString() → {string}
- Type:
- string