27 lines
742 B
C#
27 lines
742 B
C#
|
using System;
|
||
|
using System.Runtime.InteropServices;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Text;
|
||
|
|
||
|
namespace Discord
|
||
|
{
|
||
|
public partial class LobbyManager
|
||
|
{
|
||
|
public IEnumerable<User> GetMemberUsers(Int64 lobbyID)
|
||
|
{
|
||
|
var memberCount = MemberCount(lobbyID);
|
||
|
var members = new List<User>();
|
||
|
for (var i = 0; i < memberCount; i++)
|
||
|
{
|
||
|
members.Add(GetMemberUser(lobbyID, GetMemberUserId(lobbyID, i)));
|
||
|
}
|
||
|
return members;
|
||
|
}
|
||
|
|
||
|
public void SendLobbyMessage(Int64 lobbyID, string data, SendLobbyMessageHandler handler)
|
||
|
{
|
||
|
SendLobbyMessage(lobbyID, Encoding.UTF8.GetBytes(data), handler);
|
||
|
}
|
||
|
}
|
||
|
}
|