public void LoadTable() { HighStakesHttpClient httpClient = new HighStakesHttpClient(); this.table = httpClient.RunAsyncForTable().GetAwaiter().GetResult(); Console.WriteLine("HanError: in load table"); }
public void LoadUser() { HighStakesHttpClient httpClient = new HighStakesHttpClient(); this.user = httpClient.RunAsyncForUser(this.username, this.password).GetAwaiter().GetResult(); this.userID = this.user.UserId; }
public void StartRound() { HighStakesHttpClient httpClient = new HighStakesHttpClient(); this.table = httpClient.RunAsyncForStartRound(this.table).GetAwaiter().GetResult(); this.subround = 0; this.HighBid = this.table.SmallBlindAmount; Reorder(); // this.seatsOrder = this.table.SeatsInTurnOrder; this.PotValue = this.table.SmallBlindAmount + this.table.BigBlindAmount; }
public void StartGame() { HighStakesHttpClient httpClient = new HighStakesHttpClient(); this.table = httpClient.RunAsyncForStartGame(this.table).GetAwaiter().GetResult(); }
public void EndRound() { HighStakesHttpClient httpClient = new HighStakesHttpClient(); this.table = httpClient.RunAsyncForEndRound(this.table).GetAwaiter().GetResult(); }
public void JoinGame(PlayerData inputPlayer) { HighStakesHttpClient httpClient = new HighStakesHttpClient(); this.table = httpClient.RunAsyncForJoinTable(this.table, inputPlayer).GetAwaiter().GetResult(); }