NIMSDK-AOS  9.19.0
MemberOption.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.chatroom.model;
2 
3 import java.io.Serializable;
4 import java.util.Map;
5 
6 /**
7  * Created by hzxuwen on 2016/1/7.
8  */
9 public class MemberOption implements Serializable {
10 
11  /**
12  * 聊天室id
13  */
14  private String roomId;
15 
16  /**
17  * 成员帐号
18  */
19  private String account;
20 
21  /**
22  * 操作产生的通知事件中开发者自定义的扩展字段(可选)
23  */
24  private Map<String, Object> notifyExtension;
25 
26  public MemberOption(String roomId, String account) {
27  this.roomId = roomId;
28  this.account = account;
29  }
30 
31  /**
32  * 获取聊天室id
33  * @return 聊天室id
34  */
35  public String getRoomId() {
36  return roomId;
37  }
38 
39  /**
40  * 设置聊天室 id
41  * @param roomId 聊天室id
42  */
43  public void setRoomId(String roomId) {
44  this.roomId = roomId;
45  }
46 
47  /**
48  * 获取成员帐号
49  * @return 成员帐号
50  */
51  public String getAccount() {
52  return account;
53  }
54 
55  /**
56  * 设置成员帐号
57  * @param account 成员帐号
58  */
59  public void setAccount(String account) {
60  this.account = account;
61  }
62 
63  /**
64  * 获取通知事件中开发者定义的扩展字段
65  * @return 扩展字段
66  */
67  public Map<String, Object> getNotifyExtension() {
68  return notifyExtension;
69  }
70 
71  /**
72  * 设置通知事件中的扩展字段
73  * @param notifyExtension 扩展字段
74  */
75  public void setNotifyExtension(Map<String, Object> notifyExtension) {
76  this.notifyExtension = notifyExtension;
77  }
78 }
void setNotifyExtension(Map< String, Object > notifyExtension)
设置通知事件中的扩展字段
void setRoomId(String roomId)
设置聊天室 id
Map< String, Object > getNotifyExtension()
获取通知事件中开发者定义的扩展字段
void setAccount(String account)
设置成员帐号