NIMSDK-AOS 10.4.0-beta
载入中...
搜索中...
未找到
QChatUpdateMyMemberInfoParam.java
浏览该文件的文档.
1package com.netease.nimlib.sdk.qchat.param;
2
3import androidx.annotation.NonNull;
4
5/**
6 * "修改服务器成员信息"接口入参
7 */
8public class QChatUpdateMyMemberInfoParam extends QChatAntiSpamConfigParam{
9
10 /**
11 * 服务器id,必填
12 */
13 @NonNull
14 private final Long serverId;
15 /**
16 * 昵称
17 */
18 private String nick;
19 /**
20 * 头像
21 */
22 private String avatar;
23 /**
24 * 自定义扩展
25 */
26 private String custom;
27
28 /**
29 *
30 * @param serverId 服务器id
31 */
32 public QChatUpdateMyMemberInfoParam(long serverId) {
33 this.serverId = serverId;
34 }
35
36 /**
37 * 设置更新的昵称
38 * @param nick
39 */
40 public void setNick(String nick) {
41 this.nick = nick;
42 }
43
44 /**
45 * 设置更新的头像
46 * @param avatar
47 */
48 public void setAvatar(String avatar) {
49 this.avatar = avatar;
50 }
51
52 /**
53 * 设置更新的自定义扩展
54 * @param custom
55 */
56 public void setCustom(String custom) {
57 this.custom = custom;
58 }
59
60 /**
61 * 获取更新的服务器id
62 */
63 @NonNull
64 public Long getServerId() {
65 return serverId;
66 }
67
68 /**
69 * 获取更新的昵称
70 */
71 public String getNick() {
72 return nick;
73 }
74
75 /**
76 * 获取更新的头像
77 */
78 public String getAvatar() {
79 return avatar;
80 }
81
82 /**
83 * 获取更新的自定义扩展
84 */
85 public String getCustom() {
86 return custom;
87 }
88}