dt-common-device
Version:
A secure and robust device management library for IoT applications
53 lines (52 loc) • 2.06 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SmartThingsDeviceService = void 0;
/**
* SmartThings Device Service Class
* Implements ISmartthingsDeviceCommandManager interface with empty implementations
* Implementation will be provided by the consuming project
*/
class SmartThingsDeviceService {
/**
* Invokes a command on a device
* @param command - Device command to execute
* @param deviceId - Device identifier
* @returns Promise with command response
*/
async invokeCommand(command, deviceId) {
// Implementation will be provided by the consuming project
throw new Error("invokeCommand method not implemented");
}
/**
* Performs device action for SmartThings
* @param commands - Array of SmartThings device commands
* @param deviceId - Device identifier
* @param accessToken - Access token for authentication
* @returns Promise with action result
*/
async performDeviceAction(commands, deviceId, accessToken) {
// Implementation will be provided by the consuming project
throw new Error("performDeviceAction method not implemented");
}
/**
* Gets device status for SmartThings
* @param deviceId - Device identifier
* @param accessToken - Access token for authentication
* @returns Promise with device status
*/
async getDeviceStatus(deviceId, accessToken) {
// Implementation will be provided by the consuming project
throw new Error("getDeviceStatus method not implemented");
}
/**
* Gets device lock status for SmartThings
* @param deviceId - Device identifier
* @param accessToken - Access token for authentication
* @returns Promise with lock status
*/
async getDeviceLockStatus(deviceId, accessToken) {
// Implementation will be provided by the consuming project
throw new Error("getDeviceLockStatus method not implemented");
}
}
exports.SmartThingsDeviceService = SmartThingsDeviceService;