dt-common-device
Version:
A secure and robust device management library for IoT applications
60 lines (59 loc) • 2.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeviceCloudService = void 0;
/**
* Device Cloud Service Class
* Implements IDeviceCloudService interface with empty implementations
* Implementation will be provided by the consuming project
*/
class DeviceCloudService {
/**
* Creates a new connection for device management
* @param data - Connection data
* @param userId - User identifier
* @returns Promise with connection result
*/
async createConnection(data, userId) {
// Implementation will be provided by the consuming project
throw new Error("createConnection method not implemented");
}
/**
* Gets device account information for a connection
* @param connection - Connection object
* @returns Promise with device account response
*/
async getDeviceAccount(connection) {
// Implementation will be provided by the consuming project
throw new Error("getDeviceAccount method not implemented");
}
/**
* Gets all devices for a connection
* @param connection - Connection object
* @returns Promise with array of devices
*/
async getDevices(connection) {
// Implementation will be provided by the consuming project
throw new Error("getDevices method not implemented");
}
/**
* Filters devices based on connection and device list
* @param connection - Connection object
* @param devices - Array of devices to filter
* @returns Promise with filtered devices
*/
async filterDevices(connection, devices) {
// Implementation will be provided by the consuming project
throw new Error("filterDevices method not implemented");
}
/**
* Connects to a device service
* @param connection - Connection object
* @param connectionConnect - Connection parameters
* @returns Promise with connection result
*/
async connect(connection, connectionConnect) {
// Implementation will be provided by the consuming project
throw new Error("connect method not implemented");
}
}
exports.DeviceCloudService = DeviceCloudService;