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;
|
}
|
|
}
|