Exemple #1
0
 private static UserInfo[] GetUsersFromChannel(Channel channel)
 {
     List<UserInfo> users = new List<UserInfo>();
     foreach (Client client in _server.Clients)
         if (client.Value.Channel == channel.Id)
             users.Add(new UserInfo(client.Value.Username, client.Value.Rank, client.Value.ID));
     return users.ToArray();
 }
 partial void UpdateChannel(Channel instance);
 partial void DeleteChannel(Channel instance);
 partial void InsertChannel(Channel instance);