NIMSDK-AOS  9.16.0
QChatGetMentionedMeMessagesParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
7 
11  private long serverId;
15  private long channelId;
19  private Long timetag;
23  private Integer limit;
24 
30  public QChatGetMentionedMeMessagesParam(long serverId, long channelId) {
31  this.serverId = serverId;
32  this.channelId = channelId;
33  }
34 
39  public void setLimit(Integer limit) {
40  this.limit = limit;
41  }
42 
47  public void setTimetag(Long timetag) {
48  this.timetag = timetag;
49  }
50 
55  public long getServerId() {
56  return serverId;
57  }
58 
63  public long getChannelId() {
64  return channelId;
65  }
66 
71  public Long getTimetag() {
72  return timetag;
73  }
74 
79  public Integer getLimit() {
80  return limit;
81  }
82 
86  public boolean isValid() {
87  if (serverId <= 0 || channelId <= 0) {
88  return false;
89  }
90  return true;
91  }
92 }