Ejemplo n.º 1
0
 void Client_BetResult(bitstatsbet Bet)
 {
     if (Bet.user.username == username)
     {
         Bet tmp = new Bet();
         tmp.Amount = decimal.Parse(Bet.amount, System.Globalization.NumberFormatInfo.InvariantInfo);
         tmp.date   = DateTime.Parse(Bet.created_at, System.Globalization.NumberFormatInfo.InvariantInfo);
         tmp.Id     = (decimal)(Bet.id);
         tmp.Profit = decimal.Parse(Bet.win, System.Globalization.NumberFormatInfo.InvariantInfo);
         tmp.Roll   = decimal.Parse(Bet.lucky, System.Globalization.NumberFormatInfo.InvariantInfo);
         tmp.high   = Bet.high;
         tmp.Chance = decimal.Parse(Bet.chance, System.Globalization.NumberFormatInfo.InvariantInfo);
         //tmp.no = decimal.Parse(Bet.amount, System.Globalization.NumberFormatInfo.InvariantInfo);
         FinishedBet(tmp);
     }
 }
Ejemplo n.º 2
0
 void Client_BetResult(bitstatsbet Bet)
 {
     if (Bet.user.username == username)
     {
         Bet tmp = new Bet();
         tmp.Amount = decimal.Parse(Bet.amount, System.Globalization.NumberFormatInfo.InvariantInfo);
         tmp.date = DateTime.Parse(Bet.created_at, System.Globalization.NumberFormatInfo.InvariantInfo);
         tmp.Id = (decimal)(Bet.id);
         tmp.Profit = decimal.Parse(Bet.win, System.Globalization.NumberFormatInfo.InvariantInfo);
         tmp.Roll = decimal.Parse(Bet.lucky, System.Globalization.NumberFormatInfo.InvariantInfo);
         tmp.high = Bet.high;
         tmp.Chance = decimal.Parse(Bet.chance, System.Globalization.NumberFormatInfo.InvariantInfo);
         //tmp.no = decimal.Parse(Bet.amount, System.Globalization.NumberFormatInfo.InvariantInfo);
         FinishedBet(tmp);
     }
 }