1078-人工确认报警消息+链路检测

This commit is contained in:
648540858
2024-05-01 10:05:33 +08:00
parent eb43ffd98f
commit e5acf7f1e4
9 changed files with 192 additions and 4 deletions

View File

@@ -22,6 +22,9 @@ import org.springframework.context.ApplicationEvent;
public class J0001 extends Re {
int respNo;
String respId;
/**
* 0成功/确认1失败2消息有误3不支持
*/
int result;
@Override

View File

@@ -0,0 +1,49 @@
package com.genersoft.iot.vmp.jt1078.proc.response;
import com.genersoft.iot.vmp.jt1078.annotation.MsgId;
import com.genersoft.iot.vmp.jt1078.bean.JConfirmationAlarmMessageType;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 人工确认报警消息
*/
@MsgId(id = "8203")
public class J8203 extends Rs {
/**
* 报警消息流水号
*/
private int alarmPackageNo;
/**
* 人工确认报警类型
*/
private JConfirmationAlarmMessageType alarmMessageType;
@Override
public ByteBuf encode() {
ByteBuf buffer = Unpooled.buffer();
buffer.writeShort((short)(alarmPackageNo & 0xffff));
if (alarmMessageType != null) {
buffer.writeInt((int) (alarmMessageType.encode() & 0xffffffffL));
}
return buffer;
}
public int getAlarmPackageNo() {
return alarmPackageNo;
}
public void setAlarmPackageNo(int alarmPackageNo) {
this.alarmPackageNo = alarmPackageNo;
}
public JConfirmationAlarmMessageType getAlarmMessageType() {
return alarmMessageType;
}
public void setAlarmMessageType(JConfirmationAlarmMessageType alarmMessageType) {
this.alarmMessageType = alarmMessageType;
}
}

View File

@@ -0,0 +1,19 @@
package com.genersoft.iot.vmp.jt1078.proc.response;
import com.genersoft.iot.vmp.jt1078.annotation.MsgId;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
/**
* 链路检测
*/
@MsgId(id = "8204")
public class J8204 extends Rs {
@Override
public ByteBuf encode() {
ByteBuf buffer = Unpooled.buffer();
return buffer;
}
}