ResponseAction
Extends:
Example:
import { ResponseAction } from 'remote-protocol';
const action = new ResponseAction(requestId, value, false);
Constructor Summary
Public Constructor | ||
public |
constructor(requestId: *, value: *, rejected: boolean) Create a response for an executed action. |
Member Summary
Public Members | ||
public |
True if the given value thrown while executing the requested action |
|
public |
requestId: * The request id |
|
public |
value: * The given response value or error |
Method Summary
Public Methods | ||
public |
exec(session: *) |
|
public |
fetch(session: *): * |
|
public |
toArgumentsList(): undefined[] |
Inherited Summary
From class Action | ||
public |
Execute the action. |
|
public |
Fetch the action value. |
|
public |
Returns an arguments list for creating this instance remotely. |
|
public |
Get a string that represent this class. |
Public Constructors
public constructor(requestId: *, value: *, rejected: boolean) source
Create a response for an executed action.
Params:
Name | Type | Attribute | Description |
requestId | * | The request id |
|
value | * | The given response value or error to fetch |
|
rejected | boolean | True if the given value should be thrown when fetching this action |
Public Members
Public Methods
public exec(session: *) source
Execute the action.
Override:
Action#execParams:
Name | Type | Attribute | Description |
session | * |
public fetch(session: *): * source
Fetch the action value.
Override:
Action#fetchParams:
Name | Type | Attribute | Description |
session | * |
Return:
* |
public toArgumentsList(): undefined[] source
Returns an arguments list for creating this instance remotely.