File was renamed from HDLSDK/hdl-connect/src/main/java/com/hdl/sdk/connect/bean/LinkResponse.java |
| | |
| | | package com.hdl.sdk.connect.bean;
|
| | | package com.hdl.sdk.link.core.bean;
|
| | |
|
| | | import com.hdl.sdk.common.utils.TextUtils;
|
| | | import com.hdl.sdk.common.utils.gson.GsonConvert;
|
| | |
|
| | | import com.hdl.sdk.link.common.utils.TextUtils;
|
| | | import com.hdl.sdk.link.common.utils.gson.GsonConvert;
|
| | |
|
| | | import java.io.Serializable;
|
| | |
|
| | |
| | | private String topic;
|
| | | private String data;
|
| | | private int length;
|
| | |
|
| | | public String getSource_ipAddress() {
|
| | | return source_ipAddress;
|
| | | }
|
| | |
|
| | | public void setSource_ipAddress(String source_ipAddress) {
|
| | | this.source_ipAddress = source_ipAddress;
|
| | | }
|
| | |
|
| | | public String source_ipAddress;
|
| | | private byte []byteData;
|
| | |
|
| | | public String getTopic() {
|
| | | return topic;
|
| | |
| | | return data;
|
| | | }
|
| | |
|
| | | public void setByteData(byte []data) {
|
| | | this.byteData = data;
|
| | | this.data = new String(data);
|
| | | this.length=data.length;
|
| | | }
|
| | |
|
| | | public byte []getByteData() {
|
| | | return byteData;
|
| | | }
|
| | |
|
| | | public void setData(String data) {
|
| | | this.data = data;
|
| | | if (!TextUtils.isEmpty(data)) {
|
| | | this.byteData = data.getBytes();
|
| | | setLength(data.length());
|
| | | } else {
|
| | | setLength(0);
|