hxb
2022-09-08 2a01ef5e49422cca49bc7476fc1b8be8c8556561
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.hdl.sdk.link.core.bean;
 
/**
 * Created by hxb on 2022/8/4.
 */
public class LinkPacket {
    /**
     * 主题内容
     */
    private String topic;
    /**
     * 原始接收的数据,可能需要解密
     */
    private byte []body;
    /**
     * ip地址
     */
    private String ipAddress;
 
    public LinkPacket(String topic, byte[] body, String ipAddress) {
        this.topic = topic;
        this.body = body;
        this.ipAddress = ipAddress;
    }
 
    public String getTopic() {
        return topic;
    }
 
    public void setTopic(String topic) {
        this.topic = topic;
    }
 
    public byte[] getBody() {
        return body;
    }
 
    public void setBody(byte[] body) {
        this.body = body;
    }
 
    public String isIpAddress() {
        return ipAddress;
    }
 
    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }
 
}