From 99bc815e07e39354f51421b77f4012ffd35594d8 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期三, 28 六月 2023 18:03:00 +0800
Subject: [PATCH] 2023年06月28日18:02:58
---
HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/core/bean/LinkPacket.java | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 52 insertions(+), 0 deletions(-)
diff --git a/HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/core/bean/LinkPacket.java b/HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/core/bean/LinkPacket.java
new file mode 100644
index 0000000..088f82f
--- /dev/null
+++ b/HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/core/bean/LinkPacket.java
@@ -0,0 +1,52 @@
+package com.hdl.sdk.link.core.bean;
+
+/**
+ * Created by hxb on 2022/8/4.
+ */
+public class LinkPacket {
+ /**
+ * 涓婚鍐呭
+ */
+ private String topic;
+ /**
+ * 鍘熷鎺ユ敹鐨勬暟鎹紝鍙兘闇�瑕佽В瀵�
+ */
+ private byte []body;
+
+ private boolean cloudPacket;
+
+ public LinkPacket(String topic, byte[] body) {
+ this(topic,body,false);
+ }
+
+ public LinkPacket(String topic, byte[] body,boolean cloudPacket) {
+ this.topic = topic;
+ this.body = body;
+ this.cloudPacket=cloudPacket;
+ }
+
+
+ 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 boolean isCloudPacket() {
+ return cloudPacket;
+ }
+
+ public void setCloudPacket(boolean cloudPacket) {
+ this.cloudPacket = cloudPacket;
+ }
+}
--
Gitblit v1.8.0