增加设置投影机布局接口

This commit is contained in:
ljqing 2023-02-16 15:44:35 +08:00
parent 7f833fd6f2
commit 3fcd25ec96
2 changed files with 32 additions and 0 deletions

View File

@ -1560,6 +1560,15 @@ export default class ClientConnection {
); );
} }
public async SetProjectorLayout(
row: number,
column: number
) {
return await this.doRpc<Protocol.GetBlendingConfigResponseEntity>(
new Protocol.SetProjectorResolutionRequestEntity(row, column)
);
}
public async setCloudServerSetting( public async setCloudServerSetting(
cloud_server_address: string, cloud_server_address: string,
cloud_server_verify_key: string, cloud_server_verify_key: string,

View File

@ -551,6 +551,9 @@ export namespace Protocol {
public static get kSetProjectorResolution() { public static get kSetProjectorResolution() {
return Commands.PROTOCOL_PREFIX + "SetProjectorResolution"; return Commands.PROTOCOL_PREFIX + "SetProjectorResolution";
} }
public static get kSetProjectorLayout() {
return Commands.PROTOCOL_PREFIX + "SetProjectorLayout";
}
public static get kRpcFileManagerGetFileList() { public static get kRpcFileManagerGetFileList() {
return Commands.PROTOCOL_PREFIX + "RpcFileManagerGetFileList"; return Commands.PROTOCOL_PREFIX + "RpcFileManagerGetFileList";
} }
@ -705,6 +708,7 @@ export namespace Protocol {
Commands.kAddBlendingCtrlPoint, Commands.kAddBlendingCtrlPoint,
Commands.kDelBlendingCtrlPoint, Commands.kDelBlendingCtrlPoint,
Commands.kSetProjectorResolution, Commands.kSetProjectorResolution,
Commands.kSetProjectorLayout,
Commands.kRpcSetMagicWallGridState, Commands.kRpcSetMagicWallGridState,
Commands.kRpcGetMagicWallGridState, Commands.kRpcGetMagicWallGridState,
Commands.kRpcFileManagerGetFileList, Commands.kRpcFileManagerGetFileList,
@ -3696,6 +3700,25 @@ export namespace Protocol {
height = 0; height = 0;
} }
export class SetProjectorLayoutRequestEntity extends PacketEntity {
constructor(
row: number,
column: number,
rpc_id = 0
) {
super();
super.command = Commands.kSetProjectorResolution;
super.flag = PacketEntity.FLAG_REQUEST;
super.rpc_id = rpc_id;
this.row = row ?? 0;
this.column = column ?? 0;
}
row = 0;
column = 0;
}
export class RpcFileManagerGetFileListRequest extends PacketEntity { export class RpcFileManagerGetFileListRequest extends PacketEntity {
dir_path: string = ""; dir_path: string = "";
constructor(dir_path: string, rpc_id = 0) { constructor(dir_path: string, rpc_id = 0) {