This class allows you to make GET requests to the hardware models resource in the OpenGate North API.

constructor

Constructor

Parámetros

Nombre Tipo Opcional Descripción
ogapi InternalOpenGateAPI ❌ Reference to the API object.

findByManufacturer(manufacturer)

Download all models from a manufacturer. This executes a GET HTTP method

Parámetros

Nombre Tipo Opcional Descripción
manufacturer string ❌ manufacturer id .

Retorna

Tip

Tipo: Promise


findByManufacturerAndId(manufacturer, identifier)

Download a specific model by its id. This executes a GET HTTP method

Parámetros

Nombre Tipo Opcional Descripción
manufacturer string ❌ manufacturer id .
identifier string ❌ model name .

Retorna

Tip

Tipo: Promise


findMediaByManufacturerAndModelAndId(manufacturer, modelId, mediaIdentifier)

Download a specific model media by its ids. This executes a GET HTTP method

Parámetros

Nombre Tipo Opcional Descripción
manufacturer string ❌ manufacturer id .
modelId string ❌ model identifier .
mediaIdentifier string ❌ media identifier.

Retorna

Tip

Tipo: Promise


findMediasByManufacturerAndModel(manufacturer, identifier)

Download a specific model media by its ids. This executes a GET HTTP method

Parámetros

Nombre Tipo Opcional Descripción
manufacturer string ❌ manufacturer id .
identifier string ❌ model identifier .

Retorna

Tip

Tipo: Promise