1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| 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 = "";
| }
| }
|
|