增加重置融合参数的接口
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() {
|
public destory() {
|
||||||
this.ws?.close();
|
this.ws?.close();
|
||||||
if (this.ws) {
|
if (this.ws) {
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue