PageRenderTime 58ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://gitlab.com/Mr.Tomato/linbox_server
Java | 47 lines | 24 code | 11 blank | 12 comment | 0 complexity | 101c650e628c9337eda1d8dc375b1e01 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 PullOldMsgResponse extends ByteCreator {
  7. // client 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. @JSONField(name = "remote_id")
  15. public String remoteId;
  16. @JSONField(name = "group_id")
  17. public String groupId;
  18. // 消息
  19. @JSONField(name = "msgs")
  20. public Message[] msgs;
  21. // 状态码, 200 = success
  22. @JSONField(name = "status")
  23. public int status;
  24. // 错误信息
  25. @JSONField(name = "err_msg")
  26. public String errMsg;
  27. // 消息类型
  28. @JSONField(name = "type")
  29. public int type;
  30. // request 中携带的 max message id 信息,冗余仅用于简化客户端操作
  31. @JSONField(name = "max_msg_id_in_request")
  32. public long maxMsgIdInRequest;
  33. // request type ,冗余,仅用于简化客户端操作
  34. @JSONField(name = "request_type")
  35. public int requestType;
  36. }