From 30ae9e929fad80f624ab632c53081db3d2dc9aec Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期四, 25 五月 2023 17:28:57 +0800 Subject: [PATCH] 合并主线 --- src/main/java/com/genersoft/iot/vmp/jt1078/proc/response/J9102.java | 99 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 99 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/jt1078/proc/response/J9102.java b/src/main/java/com/genersoft/iot/vmp/jt1078/proc/response/J9102.java new file mode 100644 index 0000000..8d560b2 --- /dev/null +++ b/src/main/java/com/genersoft/iot/vmp/jt1078/proc/response/J9102.java @@ -0,0 +1,99 @@ +package com.genersoft.iot.vmp.jt1078.proc.response; + +import com.genersoft.iot.vmp.jt1078.annotation.MsgId; +import io.netty.buffer.ByteBuf; +import io.netty.buffer.Unpooled; + +/** + * 闊宠棰戝疄鏃朵紶杈撴帶鍒� + * + * @author QingtaiJiang + * @date 2023/4/27 18:49 + * @email qingtaij@163.com + */ +@MsgId(id = "9102") +public class J9102 extends Rs { + + // 閫氶亾鍙� + Integer channel; + + // 鎺у埗鎸囦护 + /** + * 0锛氬叧闂煶瑙嗛浼犺緭鎸囦护锛� + * 1锛氬垏鎹㈢爜娴�(澧炲姞鏆傚仠鍜岀户缁�)锛� + * 2锛氭殏鍋滆閫氶亾鎵�鏈夋祦鐨勫彂閫侊紱 + * 3锛氭仮澶嶆殏鍋滃墠娴佺殑鍙戦�侊紝涓庢殏鍋滃墠鐨勬祦绫诲瀷涓�鑷达紱 + * 4锛氬叧闂弻鍚戝璁� + */ + Integer command; + + // 鏁版嵁绫诲瀷 + /** + * 0锛氬叧闂閫氶亾鏈夊叧鐨勯煶瑙嗛鏁版嵁锛� + * 1锛氬彧鍏抽棴璇ラ�氶亾鏈夊叧鐨勯煶棰戯紝淇濈暀璇ラ�氶亾 + * 鏈夊叧鐨勮棰戯紱 + * 2锛氬彧鍏抽棴璇ラ�氶亾鏈夊叧鐨勮棰戯紝淇濈暀璇ラ�氶亾 + * 鏈夊叧鐨勯煶棰� + */ + Integer closeType; + + // 鏁版嵁绫诲瀷 + /** + * 0锛氫富鐮佹祦锛� + * 1锛氬瓙鐮佹祦 + */ + Integer streamType; + + @Override + public ByteBuf encode() { + ByteBuf buffer = Unpooled.buffer(); + buffer.writeByte(channel); + buffer.writeByte(command); + buffer.writeByte(closeType); + buffer.writeByte(streamType); + return buffer; + } + + + public Integer getChannel() { + return channel; + } + + public void setChannel(Integer channel) { + this.channel = channel; + } + + public Integer getCommand() { + return command; + } + + public void setCommand(Integer command) { + this.command = command; + } + + public Integer getCloseType() { + return closeType; + } + + public void setCloseType(Integer closeType) { + this.closeType = closeType; + } + + public Integer getStreamType() { + return streamType; + } + + public void setStreamType(Integer streamType) { + this.streamType = streamType; + } + + @Override + public String toString() { + return "J9102{" + + "channel=" + channel + + ", command=" + command + + ", closeType=" + closeType + + ", streamType=" + streamType + + '}'; + } +} -- Gitblit v1.8.0