NIMSDK-AOS  10.5.0
QChatMessageQueryOption.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.model;
2 
3 import java.io.Serializable;
4 
8 public class QChatMessageQueryOption implements Serializable {
12  private Long fromTime;
16  private Long toTime;
20  private Long excludeMessageId;
24  private Integer limit;
28  private Boolean reverse = false;
29 
34  public Long getFromTime() {
35  return fromTime;
36  }
37 
43  public void setFromTime(Long fromTime) {
44  this.fromTime = fromTime;
45  }
46 
51  public Long getToTime() {
52  return toTime;
53  }
54 
59  public void setToTime(Long toTime) {
60  this.toTime = toTime;
61  }
62 
67  public Long getExcludeMessageId() {
68  return excludeMessageId;
69  }
70 
75  public void setExcludeMessageId(Long excludeMsgId) {
76  this.excludeMessageId = excludeMsgId;
77  }
78 
83  public Integer getLimit() {
84  return limit;
85  }
86 
91  public void setLimit(Integer limit) {
92  this.limit = limit;
93  }
94 
99  public Boolean isReverse() {
100  return reverse;
101  }
102 
107  public void setReverse(Boolean reverse) {
108  this.reverse = reverse;
109  }
110 }
void setExcludeMessageId(Long excludeMsgId)
设置排除消息id
void setFromTime(Long fromTime)
设置起始时间 如果要查最新的100条,则fromTime=0, toTime=0, limit=0, reverse=0