package com.ld.igds.protocol.zldz.analysis.message; import lombok.Data; import java.util.Date; /** * 消息头对象 * * @author Andy * */ @Data public class ReMessage { private String ip; private int port; private String begin; private String sourceId;// 源 ID private String targetId;// 目标ID private String sendId;//发送者ID private String gateway1;//路由1 private String gateway2;//路由2 private String messageType;// 消息类型 private int result;// 处理结果 private String companyId;// 组织编码 private String hexCrc8;//crc8包头校验 private ReMessageBody body; private String hexCrc16;//crc16校验 private String end; private byte[] byteMsg;// 当前命令的字节信息 private String strMsg;// 当前命令转换为字符串的信息 private String batchId; private Date receiveDate; // 异常信息 private String error; @Override public String toString() { return "ReMessage{" + "ip='" + ip + '\'' + ", port=" + port + ", sourceId='" + sourceId + '\'' + ", targetId='" + targetId + '\'' + ", sendId='" + sendId + '\'' + ", messageType='" + messageType + '\'' + ", result=" + result + ", companyId='" + companyId + '\'' + ", hexCrc8='" + hexCrc8 + '\'' + ", hexCrc16='" + hexCrc16 + '\'' + ", strMsg='" + strMsg + '\'' + '}'; } }