Model Finder
This class allow make get request to hardware models resource into Opengate North API.
constructor
Constructor
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| Reference | InternalOpenGateAPI |
❌ | to the API object. |
findByManufacturer(manufacturer)
Download all models from a manufacturer. This execute 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 execute 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 execute 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 execute a GET http method
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| manufacturer | string |
❌ | manufacturer id . |
| identifier | string |
❌ | model identifier . |
Retorna
Tip
Tipo: Promise