public class LCIMConversationMemberInfo extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_CLIENTID |
static String |
ATTR_CONVID |
static String |
ATTR_CONVID_SIMPLE |
static String |
ATTR_MEMBERID |
static String |
ATTR_OJBECTID |
static String |
ATTR_OJBECTID2 |
static String |
ATTR_ROLE |
Constructor and Description |
---|
LCIMConversationMemberInfo(String conversationId,
String memberId,
ConversationMemberRole role)
构造函数
|
LCIMConversationMemberInfo(String objectId,
String conversationId,
String memberId,
ConversationMemberRole role)
构造函数
|
Modifier and Type | Method and Description |
---|---|
static LCIMConversationMemberInfo |
createInstance(Map<String,Object> data)
根据服务端返回信息创建实例(内部使用)
|
String |
getConversationId()
获取对话 id
|
String |
getCreatedAt()
获取成员加入时间(也就是该记录创建时间)
注意:目前尚未实现
|
String |
getInviter()
获取邀请者名字
注意:目前尚未实现
|
String |
getMemberId()
获取成员的 client id
|
String |
getNickname()
获取成员的昵称
注意:目前尚未实现
|
String |
getObjectId()
获取该条记录的 objectId
|
ConversationMemberRole |
getRole()
获取角色信息
|
Map<String,String> |
getUpdateAttrs()
返回属性更新的 Map(内部使用)
|
boolean |
isOwner() |
void |
setCreatedAt(String createdAt)
设置记录创建时间
注意:目前尚未实现
|
void |
setInviter(String inviter)
设置邀请者名字
注意:目前尚未实现
|
void |
setNickname(String nickname)
设置成员的昵称
注意:目前尚未实现
|
void |
setRole(ConversationMemberRole role)
设置角色
|
String |
toString() |
public static final String ATTR_OJBECTID
public static final String ATTR_OJBECTID2
public static final String ATTR_CONVID
public static final String ATTR_CONVID_SIMPLE
public static final String ATTR_MEMBERID
public static final String ATTR_CLIENTID
public static final String ATTR_ROLE
public LCIMConversationMemberInfo(String conversationId, String memberId, ConversationMemberRole role)
conversationId
- 对话 idmemberId
- 成员的 client idrole
- 角色public LCIMConversationMemberInfo(String objectId, String conversationId, String memberId, ConversationMemberRole role)
objectId
- 记录的 objectIdconversationId
- 对话 idmemberId
- 成员的 client idrole
- 角色public String getConversationId()
public String getMemberId()
public ConversationMemberRole getRole()
public void setRole(ConversationMemberRole role)
role
- ConversationMemberRole instance.public String getCreatedAt()
public void setCreatedAt(String createdAt)
createdAt
- createdAt timestamp string.public String getObjectId()
public String getInviter()
public void setInviter(String inviter)
inviter
- inviter id.public String getNickname()
public void setNickname(String nickname)
nickname
- nickname.public boolean isOwner()
public Map<String,String> getUpdateAttrs()
public static LCIMConversationMemberInfo createInstance(Map<String,Object> data)
data
- attribute map.Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.