Home Manual Reference Source Test Repository
import Areas from 'opengate-js/src/areas/Areas.js'
public class | source

Areas

Extends:

BaseProvision → Areas

This is a base object that contains all you can do about Areas.

Constructor Summary

Public Constructor
public

Constructor

Method Summary

Public Methods
public

Set the color attribute

public

withDescription(description: string): Areas

Set the description attribute

public

withEntities(entities: array): Areas

Set the entities attribute

public

withGeometry(type: string, coordinates: array): Areas

Set the geometry attribute

public

withIdentifier(identifier: string): Areas

Set the identifier attribute

public

Set the name attribute

public

Set the order attribute

public

withOrganization(organization: string): Areas

Set the organization attribute

Inherited Summary

From class BaseProvision
public

This invoke a request to OpenGate North API and the callback is managed by promises This function create a entity of provision

public

delete(body: *): Promise

This invoke a request to OpenGate North API and the callback is managed by promises This function deletes a entity of provision

public

This invoke a request to OpenGate North API and the callback is managed by promises This function updates a entity of provision

Public Constructors

public constructor(Reference: InternalOpenGateAPI) source

Constructor

Override:

BaseProvision#constructor

Params:

NameTypeAttributeDescription
Reference InternalOpenGateAPI

to the API object.

Public Methods

public withColor(color: string): Areas source

Set the color attribute

Params:

NameTypeAttributeDescription
color string

required field

Return:

Areas

public withDescription(description: string): Areas source

Set the description attribute

Params:

NameTypeAttributeDescription
description string

required field

Return:

Areas

public withEntities(entities: array): Areas source

Set the entities attribute

Params:

NameTypeAttributeDescription
entities array

required field

Return:

Areas

public withGeometry(type: string, coordinates: array): Areas source

Set the geometry attribute

Params:

NameTypeAttributeDescription
type string

required field

coordinates array

required field

Return:

Areas

public withIdentifier(identifier: string): Areas source

Set the identifier attribute

Params:

NameTypeAttributeDescription
identifier string

required field

Return:

Areas

public withName(name: string): Areas source

Set the name attribute

Params:

NameTypeAttributeDescription
name string

required field

Return:

Areas

public withOrder(order: number): Areas source

Set the order attribute

Params:

NameTypeAttributeDescription
order number

required field

Return:

Areas

public withOrganization(organization: string): Areas source

Set the organization attribute

Params:

NameTypeAttributeDescription
organization string

required field

Return:

Areas