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:
ReferenceInternalOpenGateAPI - to the API object.
findByManufacturer
function findByManufacturer(manufacturer: string) -> 'Promise'Download all models from a manufacturer. This execute a GET http method
Arguments:
manufacturerstring - 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:
manufacturerstring - manufacturer id .identifierstring - 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:
manufacturerstring - manufacturer id .modelIdstring - model identifier .mediaIdentifierstring - 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:
manufacturerstring - manufacturer id .identifierstring - model identifier .
Returns:
Promise