NIMSDK-AOS  9.16.3
MemberOption.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.chatroom.model;
2 
3 import java.io.Serializable;
4 import java.util.Map;
5 
9 public class MemberOption implements Serializable {
10 
14  private String roomId;
15 
19  private String account;
20 
24  private Map<String, Object> notifyExtension;
25 
26  public MemberOption(String roomId, String account) {
27  this.roomId = roomId;
28  this.account = account;
29  }
30 
35  public String getRoomId() {
36  return roomId;
37  }
38 
43  public void setRoomId(String roomId) {
44  this.roomId = roomId;
45  }
46 
51  public String getAccount() {
52  return account;
53  }
54 
59  public void setAccount(String account) {
60  this.account = account;
61  }
62 
67  public Map<String, Object> getNotifyExtension() {
68  return notifyExtension;
69  }
70 
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)
设置成员帐号