using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
namespace LeanCloud.Realtime {
///
/// 聊天室
///
public class LCIMChatRoom : LCIMConversation {
public LCIMChatRoom(LCIMClient client) :
base(client) {
}
///
/// 获取在线用户数量
///
///
public async Task GetOnlineMembersCount() {
return await GetMembersCount();
}
///
/// 获取在线用户
///
///
///
public async Task> GetOnlineMembers(int limit = 50) {
return await Client.ConversationController.GetOnlineMembers(Id, limit);
}
public override Task AddMembers(IEnumerable clientIds) {
throw new Exception("Add members is not allowed in chat room.");
}
}
}