Implement fetching brightness from api

This commit is contained in:
2024-12-29 00:29:09 +01:00
parent 32e3c73098
commit 8cebc36ed9
5 changed files with 44 additions and 33 deletions

View File

@@ -2,3 +2,7 @@
// This file is automatically generated. DO NOT EDIT
export function Close():Promise<void>;
export function GetLamps():Promise<Array<string>>;
export function SetLampBrightness(arg1:number,arg2:number):Promise<string>;

View File

@@ -5,3 +5,11 @@
export function Close() {
return window['go']['main']['App']['Close']();
}
export function GetLamps() {
return window['go']['main']['App']['GetLamps']();
}
export function SetLampBrightness(arg1, arg2) {
return window['go']['main']['App']['SetLampBrightness'](arg1, arg2);
}