Home Manual Reference Source Test Repository
public class | source

Operation

This is a abstract class, it must be extended to another class that defined the specific search. This class is responsible to manage execute operations request to OpenGate North API

Constructor Summary

Public Constructor
public

constructor(ogapi: InternalOpenGateAPI, resource: string, postObj: object)

Constructor

Method Summary

Public Methods
public

This invoke a request to OpenGate North API and the callback is managed by promises

Public Constructors

public constructor(ogapi: InternalOpenGateAPI, resource: string, postObj: object) source

Constructor

Params:

NameTypeAttributeDescription
ogapi InternalOpenGateAPI
  • nullable: false

this is ogapi instance

resource string
  • nullable: false

this is a base url resource

postObj object
  • nullable: false

it will be sent as a data on post action

Public Methods

public execute(): Promise source

This invoke a request to OpenGate North API and the callback is managed by promises

Return:

Promise

Return Properties:

NameTypeAttributeDescription
then function(result: object, statusCode: number)

When request it is OK

catch function(error: string)

When request it is NOK