Nexpaq.APIs Namespace |
| Class | Description | |
|---|---|---|
| CloudAPI |
API for making http requests to the cloud.
| |
| DriverAPI | DriverAPI is responsible for performing operations related to drivers, like installing, deleting, and loading drivers.
| |
| GatewayAPI | GatewayAPI is the api responsible for performing operations on gateway, like chargng phone, stop charging phone, and requesting battery status.
| |
| MainAPI |
Nexpaq API, that provides access to nexpaq cloud and other functions
| |
| ManifestAPI | ManifestAPI is the service responsible for performing manifests operations like adding/downloading manifests, and check if installed.
| |
| ModuleAPI | ModuleAPI is responsible for performing module related operations like sending commands to modules and initializing modules.
| |
| ProductAPI | ProductAPI contains the shared functionalities used by GatewayAPI and ModuleAPI like
erasing firmware, installing firmware, etc.
| |
| RepositoryAPI | RepositoryAPI is responsible for performing http operations related to repository.
|
Moduware.v0.API.Cloud.{method}({arguments});
Moduware.v0.API.Driver.{method}({arguments});
Moduware.v0.API.Gateway.{method}({arguments});
Moduware.v0.API.MainApi.{method}({arguments});
Moduware.v0.API.Manifest.{method}({arguments});
Moduware.v0.API.Module.{method}({arguments});
Moduware.v0.API.Product.{method}({arguments});
Moduware.v0.API.Repository.{method}({arguments});Moduware.v0.Cloud.addEventListener('eventName', (event) => { }); Moduware.v0.Driver.addEventListener('eventName', (event) => { }); Moduware.v0.Gateway.addEventListener('eventName', (event) => { }); Moduware.v0.MainApi.addEventListener('eventName', (event) => { }); Moduware.v0.Manifest.addEventListener('eventName', (event) => { }); Moduware.v0.Module.addEventListener('eventName', (event) => { }); Moduware.v0.Product.addEventListener('eventName', (event) => { }); Moduware.v0.Repository.addEventListener('eventName', (event) => { });