private async void RequestGameList() { await Task.Run(() => { _client.EnqueueDataForWrite(new RequestGamelistPackage(App.Uid, Router.ServerWildcard)); Log.Debug("Matchlist requested."); }); }
private async void SendRegisterMessage(string username, string password) { await Task.Run(() => { _client.EnqueueDataForWrite(new RegistrationPackage( username, password, App.Uid, Router.ServerWildcard )); }); }
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); }); }
public void MatchJoined(string matchUid) { _viewModel.MatchUid = matchUid; _client.EnqueueDataForWrite(new RequestMatchDataPackage(matchUid, App.Uid, Router.ServerWildcard)); }
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)); }