Model Finder

ModelFinder

ModelFinder Objects

class ModelFinder()

This class allow make get request to hardware models resource into Opengate North API.

constructor
function constructor()

Constructor

Arguments:

  • Reference InternalOpenGateAPI - to the API object.

findByManufacturer
function findByManufacturer(manufacturer: string) -> 'Promise'

Download all models from a manufacturer. This execute a GET http method

Arguments:

  • manufacturer string - manufacturer id .

Returns:

  • Promise

findByManufacturerAndId
function findByManufacturerAndId(manufacturer: string,identifier: string) -> 'Promise'

Download a specific model by its id. This execute a GET http method

Arguments:

  • manufacturer string - manufacturer id .
  • identifier string - model name .

Returns:

  • Promise

findMediaByManufacturerAndModelAndId
function findMediaByManufacturerAndModelAndId(manufacturer: string,modelId: string,mediaIdentifier: string) -> 'Promise'

Download a specific model media by its ids. This execute a GET http method

Arguments:

  • manufacturer string - manufacturer id .
  • modelId string - model identifier .
  • mediaIdentifier string - media identifier.

Returns:

  • Promise

findMediasByManufacturerAndModel
function findMediasByManufacturerAndModel(manufacturer: string,identifier: string) -> 'Promise'

Download a specific model media by its ids. This execute a GET http method

Arguments:

  • manufacturer string - manufacturer id .
  • identifier string - model identifier .

Returns:

  • Promise