增加重置融合参数的接口

This commit is contained in:
ljqing 2023-01-13 11:49:45 +08:00
parent b58044d5b7
commit 998ef225fc
2 changed files with 22 additions and 1 deletions

View File

@ -1469,6 +1469,12 @@ export default class ClientConnection {
);
}
public async ResetBlendingConfig() {
return await this.doRpc<Protocol.GetBlendingConfigResponseEntity>(
new Protocol.ResetBlendingConfigRequestEntity()
);
}
public destory() {
this.ws?.close();
if (this.ws) {

View File

@ -520,6 +520,9 @@ export namespace Protocol {
public static get kSetBlendingVerDensity() {
return Commands.PROTOCOL_PREFIX + "SetBlendingVerDensity";
}
public static get kResetBlending() {
return Commands.PROTOCOL_PREFIX + "ResetBlending";
}
static _all_commands = new Set([
Commands.kUnKnowCommand,
@ -651,6 +654,7 @@ export namespace Protocol {
Commands.kSaveBlendingConfig,
Commands.kSetBlendingHorDensity,
Commands.kSetBlendingVerDensity,
Commands.kResetBlending,
]);
public static get AllCommands() {
return this._all_commands;
@ -3447,4 +3451,15 @@ export namespace Protocol {
control_point = 0; //控制点编号1开始从上到下从左到右
value = 0;
}
export class ResetBlendingConfigRequestEntity extends PacketEntity {
constructor(
rpc_id = 0
) {
super();
super.command = Commands.kResetBlending;
super.flag = PacketEntity.FLAG_REQUEST;
super.rpc_id = rpc_id;
}
}
}