Methods
-
<static> instructionParameter(name, value)
-
Create an instruction parameter suitable to passing to NodeInstructionUrlHelperMixin#queueInstructionUrl.
Parameters:
Name Type Description namestring the parameter name
value* the parameter value
Returns:
with
nameandvalueproperties- Type
- object
-
queueInstructionsUrl(topic [, parameters] [, nodeIds])
-
Generate a URL for posting instruction requests for multiple nodes.
Parameters:
Name Type Argument Description topicstring the instruction topic
parametersArray.<Object> <optional>
an array of parameter objects in the form
{name:n1, value:v1}nodeIdsArray.<number> <optional>
a list of node IDs to use; if not provided the
nodeIdsproperty of this class will be usedReturns:
the URL
- Type
- string
-
queueInstructionUrl(topic [, parameters] [, nodeId])
-
Generate a URL for posting an instruction request.
Parameters:
Name Type Argument Description topicstring the instruction topic
parametersArray.<Object> <optional>
an array of parameter objects in the form
{name:n1, value:v1}nodeIdnumber <optional>
a specific node ID to use; if not provided the
nodeIdproperty of this class will be usedReturns:
the URL
- Type
- string
-
updateInstructionStateUrl(instructionId, state)
-
Generate a URL for changing the state of an instruction.
Parameters:
Name Type Description instructionIdnumber the instruction ID to update
stateInstructionState the instruction state to set
- See:
-
- the InstructionStates enum for possible state values
Returns:
the URL
- Type
- string
-
urlEncodeInstructionParameters( [parameters])
-
Generate URL encoded query string for posting instruction parameters.
Parameters:
Name Type Argument Description parametersArray.<Object> <optional>
an array of parameter objects in the form
{name:n1, value:v1}Returns:
the URL encoded query string, or an empty string if
parametersis empty- Type
- string
-
viewActiveInstructionsUrl( [nodeId])
-
Generate a URL for viewing active instructions.
Parameters:
Name Type Argument Description nodeIdnumber <optional>
a specific node ID to use; if not provided the
nodeIdproperty of this class will be usedReturns:
the URL
- Type
- string
-
viewInstructionUrl(instructionId)
-
Generate a URL to get all details for a specific instruction.
Parameters:
Name Type Description instructionIdnumber the instruction ID to get
Returns:
the URL
- Type
- string
-
viewPendingInstructionsUrl( [nodeId])
-
Generate a URL for viewing pending instructions.
Parameters:
Name Type Argument Description nodeIdnumber <optional>
a specific node ID to use; if not provided the
nodeIdproperty of this class will be usedReturns:
the URL
- Type
- string