public void RequestClientsInProcess(Action <Client, TablesInProcessResponse> callback)
        {
            TablesInProcessRequest request = new TablesInProcessRequest();

            AddCallback(callback, request);
            SendMessage(request);
        }
        public void ClientsInProcessRequestHandler(TablesInProcessRequest request)
        {
            TablesInProcessResponse response = new TablesInProcessResponse(request);

            response.ClientsInProcess = new List <TablePropertiesBase>();

            foreach (var receiver in Server.Receivers.Where(x => x != this))
            {
                if (receiver.Status == StatusEnum.InProcess)
                {
                    response.ClientsInProcess.Add(new TablePropertiesBase(receiver.InGameProperties.Room,
                                                                          receiver.Email, ""));
                }
            }

            SendMessage(response);
        }
예제 #3
0
 public TablesInProcessResponse(TablesInProcessRequest request)
     : base(request)
 {
 }