package com.sandu.ximon.admin.localMQTT.model;
|
|
import lombok.Data;
|
|
/**
|
* @author van
|
* @version 1.0
|
* msg:本地mqtt消息结构
|
* @date 2022/11/9 13:55
|
*/
|
@Data
|
public class LocalMqttMsg {
|
private String timestamp;
|
private String connectType;
|
private String msgType;
|
private String payload;
|
|
public LocalMqttMsg(String timestamp, String connectType, String msgType, String payload) {
|
this.timestamp = timestamp;
|
this.connectType = connectType;
|
this.msgType = msgType;
|
this.payload = payload;
|
}
|
|
public LocalMqttMsg() {
|
this.timestamp = String.valueOf(System.currentTimeMillis());
|
this.connectType = "1";
|
this.msgType = "1";
|
this.payload = "FEA501000BFE010003FFFF640F48B1367ABDE0B9";
|
}
|
}
|