增加重置融合参数的接口

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() { public destory() {
this.ws?.close(); this.ws?.close();
if (this.ws) { if (this.ws) {

View File

@ -520,6 +520,9 @@ export namespace Protocol {
public static get kSetBlendingVerDensity() { public static get kSetBlendingVerDensity() {
return Commands.PROTOCOL_PREFIX + "SetBlendingVerDensity"; return Commands.PROTOCOL_PREFIX + "SetBlendingVerDensity";
} }
public static get kResetBlending() {
return Commands.PROTOCOL_PREFIX + "ResetBlending";
}
static _all_commands = new Set([ static _all_commands = new Set([
Commands.kUnKnowCommand, Commands.kUnKnowCommand,
@ -651,6 +654,7 @@ export namespace Protocol {
Commands.kSaveBlendingConfig, Commands.kSaveBlendingConfig,
Commands.kSetBlendingHorDensity, Commands.kSetBlendingHorDensity,
Commands.kSetBlendingVerDensity, Commands.kSetBlendingVerDensity,
Commands.kResetBlending,
]); ]);
public static get AllCommands() { public static get AllCommands() {
return this._all_commands; return this._all_commands;
@ -3447,4 +3451,15 @@ export namespace Protocol {
control_point = 0; //控制点编号1开始从上到下从左到右 control_point = 0; //控制点编号1开始从上到下从左到右
value = 0; 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;
}
}
} }