import { DeviceCommand } from "../model/device-command.model"; import { HostConfig } from '../config/host.config'; import { Injectable } from '@angular/core'; import { HttpHandler } from './http-handler.service'; import { Page } from '../response/page.type'; @Injectable({ providedIn: 'root', }) export class DeviceCommandService { static PATH = '/deviceCommand'; constructor(private httpHandler: HttpHandler) {} stopLightAndSound(gid: number,gsn: string,dsn: string, header?: any): Promise { return this.httpHandler.get(`${HostConfig.DEV_HOST}${DeviceCommandService.PATH}/stopLightAndSound?gid=${gid}&gsn=${gsn}&dsn=${dsn}`, header); } }