Home Reference Source
public class | source

RequestAction

Extends:

Action → RequestAction

Example:

import { RequestAction } from 'remote-protocol';

const action = new RequestAction(id, action);

Constructor Summary

Public Constructor
public

constructor(id: *, action: Action)

Create a request with given request id and action to fetch.

Member Summary

Public Members
public

The action that was requested to fetch

public

id: *

The request id

Method Summary

Public Methods
public

exec(session: *)

public

fetch(session: *): *

public

Inherited Summary

From class Action
public

exec(session: Session): undefined | Promise

Execute the action.

public

fetch(session: Session): *

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(id: *, action: Action) source

Create a request with given request id and action to fetch.

Params:

NameTypeAttributeDescription
id *

The request id

action Action

The action that was requested to fetch

Public Members

public action: Action source

The action that was requested to fetch

public id: * source

The request id

Public Methods

public exec(session: *) source

Execute the action.

Override:

Action#exec

Params:

NameTypeAttributeDescription
session *

public fetch(session: *): * source

Fetch the action value.

Override:

Action#fetch

Params:

NameTypeAttributeDescription
session *

Return:

*

public toArgumentsList(): undefined[] source

Returns an arguments list for creating this instance remotely.

Override:

Action#toArgumentsList

Return:

undefined[]