增加重置融合参数的接口
This commit is contained in:
parent
b58044d5b7
commit
998ef225fc
|
@ -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) {
|
||||
|
|
|
@ -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,
|
||||
|
@ -650,7 +653,8 @@ export namespace Protocol {
|
|||
Commands.kGetBlendingConfig,
|
||||
Commands.kSaveBlendingConfig,
|
||||
Commands.kSetBlendingHorDensity,
|
||||
Commands.kSetBlendingVerDensity,
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue