private async void RequestGameList()
 {
     await Task.Run(() =>
     {
         _client.EnqueueDataForWrite(new RequestGamelistPackage(App.Uid, Router.ServerWildcard));
         Log.Debug("Matchlist requested.");
     });
 }
예제 #2
0
 private async void SendRegisterMessage(string username, string password)
 {
     await Task.Run(() =>
     {
         _client.EnqueueDataForWrite(new RegistrationPackage(
                                         username,
                                         password,
                                         App.Uid,
                                         Router.ServerWildcard
                                         ));
     });
 }
예제 #3
0
        private async void SendLoginMessage(string username, string password)
        {
            App.Username = username;

            await Task.Run(() =>
            {
                var loginPackage = new AuthenticationPackage(
                    username,
                    password,
                    App.Uid,
                    Router.ServerWildcard);

                _client.EnqueueDataForWrite(loginPackage);
            });
        }
예제 #4
0
 public void MatchJoined(string matchUid)
 {
     _viewModel.MatchUid = matchUid;
     _client.EnqueueDataForWrite(new RequestMatchDataPackage(matchUid, App.Uid, Router.ServerWildcard));
 }
예제 #5
0
 private void SendCreateMassage(string matchTitle, int maxRounds, int maxPlayers, int roundLength)
 {
     _client.EnqueueDataForWrite(new CreateMatchPackage(new MatchData(matchTitle, maxRounds, maxPlayers, roundLength), App.Uid, Router.ServerWildcard));
 }