NIMSDK-AOS  9.17.0
QChatUpdatedMyMemberInfoImpl.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.model;
2 
3 import androidx.annotation.Nullable;
4 
5 import com.netease.nimlib.log.model.LogDesensitizationConfigHelper;
7 
9  private final long serverId;
10  private final String nick;
11  private final boolean nickChanged;
12  private final String avatar;
13  private final boolean avatarChanged;
14 
15  public QChatUpdatedMyMemberInfoImpl(long serverId, String nick, boolean nickChanged, String avatar, boolean avatarChanged) {
16  this.serverId = serverId;
17  this.nick = nick;
18  this.nickChanged = nickChanged;
19  this.avatar = avatar;
20  this.avatarChanged = avatarChanged;
21  }
22 
23  @Override
24  public long getServerId() {
25  return this.serverId;
26  }
27 
28  @Override
29  @Nullable
30  public String getNick() {
31  return this.nick;
32  }
33 
34  @Override
35  @Nullable
36  public boolean isNickChanged() {
37  return nickChanged;
38  }
39 
40  @Override
41  @Nullable
42  public String getAvatar() {
43  return this.avatar;
44  }
45 
46  @Override
47  @Nullable
48  public boolean isAvatarChanged() {
49  return avatarChanged;
50  }
51 
52  @Override
53  public String toString() {
54  return "QChatUpdatedMyMemberInfoImpl{" +
55  "serverId=" + serverId +
56  ", nick='" + LogDesensitizationConfigHelper.getPrintTextOfNick(nick) + '\'' +
57  ", nickChanged=" + nickChanged +
58  ", avatar='" + avatar + '\'' +
59  ", avatarChanged=" + avatarChanged +
60  '}';
61  }
62 }
String getNick()
变更后的昵称 QChatUpdatedMyMemberInfo#isNickChanged()为false是为null
String getAvatar()
变更后的头像。 QChatUpdatedMyMemberInfo#isAvatarChanged()为false是为null
QChatUpdatedMyMemberInfoImpl(long serverId, String nick, boolean nickChanged, String avatar, boolean avatarChanged)