PageRenderTime 24ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/src/main/java/com/linbox/im/message/SyncUnreadRequest.java

https://gitlab.com/Mr.Tomato/linbox_server
Java | 39 lines | 18 code | 9 blank | 12 comment | 0 complexity | 9f2212a77d9886eb2c13b69f1748fc44 MD5 | raw file
  1. package com.linbox.im.message;
  2. import com.alibaba.fastjson.annotation.JSONField;
  3. /**
  4. * Created by lrsec on 6/29/15.
  5. */
  6. public class SyncUnreadRequest extends ByteCreator{
  7. // request id
  8. @JSONField(name="r_id")
  9. public long rId;
  10. // user chat id
  11. @JSONField(name="user_id")
  12. public String userId;
  13. // remote chatter id
  14. // 非必填项,填写则指定拉取一组对话的未读数信息。不填则拉取所有未读数信息
  15. @JSONField(name = "remote_id")
  16. public String remoteId;
  17. @JSONField(name = "group_id")
  18. public String groupId;
  19. // 分页数据,本次分页起始偏移量
  20. @JSONField(name = "offset")
  21. public long offset;
  22. // 分页数据,分业内数据量
  23. @JSONField(name = "limit")
  24. public int limit;
  25. // 消息类型
  26. // 非必填项,不填写则拉取所有类型的信息
  27. // 如果填写,则必须包含对应类型的 remoteChatId 或者 groupChatId
  28. @JSONField(name = "type")
  29. public int type = 1;
  30. }