EMChatroom

EMChatroom

new EMChatroom(chatroom)

Source:
EMChatroom constructor.
Parameters:
Name Type Description
chatroom Object 聊天室对象

Methods

chatroomAdmins() → {Array}

Source:
Get chatroom's admins. Note: Will return empty array if have not ever got chatroom's admins.
Returns:
String list. 聊天室管理员列表
Type
Array

chatroomAnnouncement() → {String}

Source:
Get chatroom's announcement.
Returns:
聊天室公告
Type
String

chatroomBans() → {Array}

Source:
Get chatroom's bans. Note: Will return empty array if have not ever got chatroom's bans.
Returns:
String list. 聊天室禁言成员列表
Type
Array

chatroomDescription() → {String}

Source:
Get chatroom's description.
Returns:
返回聊天室描述
Type
String

chatroomId() → {String}

Source:
Get chatroom's ID.
Returns:
聊天室ID
Type
String

chatroomMemberCount() → {Number}

Source:
Get current members count.
Returns:
返回聊天室成员数
Type
Number

chatroomMemberMaxCount() → {Number}

Source:
Get max count of chatroom member.
Returns:
返回聊天室最大人数
Type
Number

chatroomMembers() → {Array}

Source:
Get chatroom's members. Note: Will return empty array if have not ever got chatroom's members.
Returns:
String list.聊天室成员列表
Type
Array

chatroomMemberType() → {Number}

Source:
Get current login user type.
Returns:
聊天室类型
Type
Number

chatroomMutes() → {Array}

Source:
Get chatroom's mutes. Note: Will return empty array if have not ever got chatroom's mutes. object is like {"key": name, "value": muteTime}.
Returns:
Object list. 聊天室禁言一段时间的成员列表
Type
Array

chatroomSetting() → {Number}

Source:
Get chatroom's setting.
Returns:
返回聊天室设置
Type
Number

chatroomSubject() → {String}

Source:
Get chatroom's subject.
Returns:
返回聊天室名称
Type
String

owner() → {String}

Source:
Get chatroom's owner.
Returns:
返回聊天室群主
Type
String