PageRenderTime 37ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://gitlab.com/Mr.Tomato/linbox_server
Java | 51 lines | 25 code | 14 blank | 12 comment | 0 complexity | 284a1fc48b7868d53ae660039abb1a49 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 PullOldMsgRequest extends ByteCreator{
  7. public static final long MAX = -1l;
  8. // 客户端 request id
  9. @JSONField(name = "r_id")
  10. public long rId;
  11. // user id
  12. @JSONField(name = "user_id")
  13. public String userId;
  14. // remote id
  15. @JSONField(name = "remote_id")
  16. public String remoteId;
  17. @JSONField(name = "group_id")
  18. public String groupId;
  19. // max message id want to pull
  20. @JSONField(name = "max_msg_id")
  21. public long maxMsgId;
  22. // min message id for this pulling
  23. @JSONField(name = "min_msg_id")
  24. public long minMsgId;
  25. // pull page size
  26. @JSONField(name = "limit")
  27. public int limit;
  28. // 消息类型
  29. @JSONField(name = "type")
  30. public int type;
  31. // request 中携带的 max message id 信息,冗余仅用于简化客户端操作
  32. @JSONField(name = "max_msg_id_in_request")
  33. public long maxMsgIdInRequest;
  34. // request type ,冗余,仅用于简化客户端操作
  35. @JSONField(name = "request_type")
  36. public int requestType;
  37. }