|
@@ -0,0 +1,239 @@
|
|
|
+package com.citu.module.menduner.im.controller.app.base.wukong;
|
|
|
+
|
|
|
+import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+public class ChannelMessageSyncResp {
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询的start_message_seq
|
|
|
+ */
|
|
|
+ @JsonProperty("start_message_seq")
|
|
|
+ private Integer startMessageSeq=0;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询的end_message_seq
|
|
|
+ */
|
|
|
+ @JsonProperty("end_message_seq")
|
|
|
+ private Integer endMessageSeq =100;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 是否有更多 0.无 1.有
|
|
|
+ */
|
|
|
+ private Integer more=1;
|
|
|
+
|
|
|
+
|
|
|
+ private List<Message> messages;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ class Message {
|
|
|
+ private MessageHeader header;
|
|
|
+ /**
|
|
|
+ * 消息设置 消息设置是一个 uint8的数字类型 为1个字节,完全由第三方自定义 比如定义第8位为已读未读回执标记,开启则为0000 0001 = 1
|
|
|
+ */
|
|
|
+ private Integer setting;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 消息全局唯一ID
|
|
|
+ */
|
|
|
+ @JsonProperty("message_id")
|
|
|
+ private Long messageId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 客户端消息编号,可用此字段去重
|
|
|
+ */
|
|
|
+ @JsonProperty("client_msg_no")
|
|
|
+ private String clientMsgNo;
|
|
|
+ /**
|
|
|
+ * 消息序列号 (用户唯一,有序递增)
|
|
|
+ */
|
|
|
+ @JsonProperty("message_seq")
|
|
|
+ private String messageSeq;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 发送者用户id
|
|
|
+ */
|
|
|
+ @JsonProperty("from_uid")
|
|
|
+ private String fromUid;
|
|
|
+ /**
|
|
|
+ * 频道ID
|
|
|
+ */
|
|
|
+ @JsonProperty("channel_id")
|
|
|
+ private String channelId;
|
|
|
+ /**
|
|
|
+ * 频道类型 1.个人频道 2.群频道
|
|
|
+ */
|
|
|
+ @JsonProperty("channel_type")
|
|
|
+ private Integer channelType;
|
|
|
+ /**
|
|
|
+ * 消息10位到秒的时间戳
|
|
|
+ */
|
|
|
+ @JsonProperty("timestamp")
|
|
|
+ private Long timestamp;
|
|
|
+ /**
|
|
|
+ * base64编码的消息内容
|
|
|
+ */
|
|
|
+ @JsonProperty("payload")
|
|
|
+ private String payload;
|
|
|
+
|
|
|
+ public MessageHeader getHeader() {
|
|
|
+ return header;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setHeader(MessageHeader header) {
|
|
|
+ this.header = header;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getSetting() {
|
|
|
+ return setting;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSetting(Integer setting) {
|
|
|
+ this.setting = setting;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getMessageId() {
|
|
|
+ return messageId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMessageId(Long messageId) {
|
|
|
+ this.messageId = messageId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getClientMsgNo() {
|
|
|
+ return clientMsgNo;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setClientMsgNo(String clientMsgNo) {
|
|
|
+ this.clientMsgNo = clientMsgNo;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getMessageSeq() {
|
|
|
+ return messageSeq;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMessageSeq(String messageSeq) {
|
|
|
+ this.messageSeq = messageSeq;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getFromUid() {
|
|
|
+ return fromUid;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFromUid(String fromUid) {
|
|
|
+ this.fromUid = fromUid;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getChannelId() {
|
|
|
+ return channelId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setChannelId(String channelId) {
|
|
|
+ this.channelId = channelId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getChannelType() {
|
|
|
+ return channelType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setChannelType(Integer channelType) {
|
|
|
+ this.channelType = channelType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getTimestamp() {
|
|
|
+ return timestamp;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTimestamp(Long timestamp) {
|
|
|
+ this.timestamp = timestamp;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPayload() {
|
|
|
+ return payload;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPayload(String payload) {
|
|
|
+ this.payload = payload;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ class MessageHeader {
|
|
|
+ /**
|
|
|
+ * 否不存储消息 0.存储 1.不存储
|
|
|
+ */
|
|
|
+ @JsonProperty("no_persist")
|
|
|
+ private Integer noPersist;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 是否显示红点计数,0.不显示 1.显示
|
|
|
+ */
|
|
|
+ @JsonProperty("red_dot")
|
|
|
+ private Integer redDot;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 否是写扩散,这里一般是0,只有cmd消息才是1
|
|
|
+ */
|
|
|
+ @JsonProperty("sync_once")
|
|
|
+ private Integer syncOnce;
|
|
|
+
|
|
|
+ public Integer getNoPersist() {
|
|
|
+ return noPersist;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setNoPersist(Integer noPersist) {
|
|
|
+ this.noPersist = noPersist;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getRedDot() {
|
|
|
+ return redDot;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setRedDot(Integer redDot) {
|
|
|
+ this.redDot = redDot;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getSyncOnce() {
|
|
|
+ return syncOnce;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSyncOnce(Integer syncOnce) {
|
|
|
+ this.syncOnce = syncOnce;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getStartMessageSeq() {
|
|
|
+ return startMessageSeq;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setStartMessageSeq(Integer startMessageSeq) {
|
|
|
+ this.startMessageSeq = startMessageSeq;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getEndMessageSeq() {
|
|
|
+ return endMessageSeq;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setEndMessageSeq(Integer endMessageSeq) {
|
|
|
+ this.endMessageSeq = endMessageSeq;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getMore() {
|
|
|
+ return more;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMore(Integer more) {
|
|
|
+ this.more = more;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<Message> getMessages() {
|
|
|
+ return messages;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMessages(List<Message> messages) {
|
|
|
+ this.messages = messages;
|
|
|
+ }
|
|
|
+}
|