NIMSDK-AOS  10.9.50
V2NIMUpdateMemberNickParams.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.v2.team.params;
2 
4 
5 /**
6  * 修改群成员昵称相关参数
7  */
9 
10  /**
11  * 被修改成员的账号
12  */
13  private String accountId;
14  /**
15  * 被修改成员新的昵称
16  * 为 null 返回参数错误
17  * 可以传入空串""
18  */
19  private String teamNick;
20 
21  /**
22  * 如果不审核,该配置不需要配置, 昵称相关的安全配置
23  * 主要针对群昵称进行检测
24  * 如果开启了安全通,默认采用安全通,该配置不需要配置
25  * 如果需要审核,且需要调整策略,则需要该配置
26  */
27  private V2NIMAntispamConfig antispamConfig;
28 
30  }
31 
32 
33  /**
34  * 构造方法
35  * @param accountId 被修改成员的账号
36  * @param teamNick 群昵称
37  */
38  public V2NIMUpdateMemberNickParams(String accountId, String teamNick) {
39  this.accountId = accountId;
40  this.teamNick = teamNick;
41  }
42 
43  /**
44  * 获取被修改成员的账号
45  * @return 被修改成员的账号
46  */
47  public String getAccountId() {
48  return accountId;
49  }
50 
51  /**
52  * 设置被修改成员的账号
53  * @param accountId 被修改成员的账号
54  */
55  public void setAccountId(String accountId) {
56  this.accountId = accountId;
57  }
58 
59  /**
60  * 获取群昵称
61  * @return 群昵称
62  */
63  public String getTeamNick() {
64  return teamNick;
65  }
66 
67  /**
68  * 设置群昵称
69  * @param teamNick 群昵称
70  */
71  public void setTeamNick(String teamNick) {
72  this.teamNick = teamNick;
73  }
74 
75  /**
76  * 获取昵称相关的安全配置
77  * @return 昵称相关的安全配置
78  */
80  return antispamConfig;
81  }
82 
83  /**
84  * 设置昵称相关的安全配置
85  * @return 昵称相关的安全配置
86  */
87  public void setAntispamConfig(V2NIMAntispamConfig antispamConfig) {
88  this.antispamConfig = antispamConfig;
89  }
90 
91  public boolean isValid(){
92  return accountId != null || teamNick != null;
93  }
94 
95 }
V2NIMUpdateMemberNickParams(String accountId, String teamNick)
构造方法
V2NIMAntispamConfig getAntispamConfig()
获取昵称相关的安全配置
void setAntispamConfig(V2NIMAntispamConfig antispamConfig)
设置昵称相关的安全配置
void setAccountId(String accountId)
设置被修改成员的账号