Example #1
0
        static Bet BetParser(SQLiteDataReader Reader)
        {
            string site = "";
            Bet    tmp  = new Bet();

            for (int i = 0; i < Reader.FieldCount; i++)
            {
                switch (Reader.GetName(i))
                {
                case "betid": tmp.Id = (string)Reader[i]; break;

                case "date": tmp.date = (DateTime)Reader[i]; break;

                case "stake": tmp.Amount = (decimal)Reader[i]; break;

                case "profit": tmp.Profit = (decimal)Reader[i]; break;

                case "chance": tmp.Chance = (decimal)Reader[i]; break;

                case "high": tmp.high = (short)Reader[i] == 1; break;

                case "lucky": tmp.Roll = (decimal)Reader[i]; break;

                case "hash": tmp.serverhash = (string)Reader[i]; break;

                case "nonce": tmp.nonce = (long)Reader[i]; break;

                case "uid": tmp.uid = (int)Reader[i]; break;

                case "Client": tmp.clientseed = (string)Reader[i]; break;

                case "server": tmp.serverseed = (string)Reader[i]; break;

                case "site": site = (string)Reader[i]; break;
                }
            }
            if (!string.IsNullOrEmpty(tmp.serverseed) && !string.IsNullOrEmpty(tmp.clientseed) && tmp.Roll != -1 && site != "")
            {
                switch (site)
                {
                case "JustDice": tmp.Verified = tmp.Roll == (decimal)DiceSite.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "PrimeDice": tmp.Verified = tmp.Roll == (decimal)PD.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "999Dice": tmp.Verified = tmp.Roll == (decimal)dice999.sGetLucky(tmp.serverseed, (tmp.clientseed), (int)tmp.nonce, /*(long)(tmp.Roll*10000m),*/ tmp.serverhash); break;

                case "SafeDice": tmp.Verified = tmp.Roll == (decimal)SafeDice.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "PRCDice": tmp.Verified = tmp.Roll == (decimal)PRC.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "RollinIO": tmp.Verified = tmp.Roll == (decimal)rollin.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "BitDice": tmp.Verified = tmp.Roll == (decimal)bitdice.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "BetterBets": tmp.Verified = tmp.Roll == (decimal)BB.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "MoneyPot": tmp.Verified = tmp.Roll == (decimal)moneypot.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "MoneroDice": tmp.Verified = tmp.Roll == (decimal)MoneroDice.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "FortuneJack": tmp.Verified = tmp.Roll == (decimal)FortuneJack.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "Coinichiwa": tmp.Verified = tmp.Roll == (decimal)Coinichiwa.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "CoinMillions": tmp.Verified = tmp.Roll == (decimal)CoinMillions.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "CryptoGames": tmp.Verified = tmp.Roll == (decimal)cryptogames.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "Bitsler": tmp.Verified = tmp.Roll == (decimal)Bitsler.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "Wealthydice": tmp.Verified = tmp.Roll == (decimal)WD.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "SatoshiDice": tmp.Verified = tmp.Roll == (decimal)SatoshiDice.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "Bitvest": tmp.Verified = tmp.Roll == (decimal)Bitvest.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "KingDice": tmp.Verified = tmp.Roll == (decimal)Kingdice.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;

                case "YoloDice": tmp.Verified = tmp.Roll == (decimal)YoloDice.sGetLucky(tmp.serverseed, tmp.clientseed, (int)tmp.nonce); break;
                }
            }
            return(tmp);
        }
Example #2
0
        static Bet BetParser(SQLiteDataReader Reader)
        {
            string site = "";
            Bet    tmp  = new Bet();

            for (int i = 0; i < Reader.FieldCount; i++)
            {
                switch (Reader.GetName(i))
                {
                case "betid": tmp.Id = (string)Reader[i]; break;

                case "date": tmp.date = (DateTime)Reader[i]; break;

                case "stake": tmp.Amount = (decimal)Reader[i]; break;

                case "profit": tmp.Profit = (decimal)Reader[i]; break;

                case "chance": tmp.Chance = (decimal)Reader[i]; break;

                case "high": tmp.high = (short)Reader[i] == 1; break;

                case "lucky": tmp.Roll = (decimal)Reader[i]; break;

                case "hash": tmp.serverhash = (string)Reader[i]; break;

                case "nonce": tmp.nonce = (long)Reader[i]; break;

                case "uid": tmp.uid = (int)Reader[i]; break;

                case "Client": tmp.clientseed = (string)Reader[i]; break;

                case "server": tmp.serverseed = (string)Reader[i]; break;

                case "site": site = (string)Reader[i]; break;
                }
            }
            if (!string.IsNullOrEmpty(tmp.serverseed) && !string.IsNullOrEmpty(tmp.clientseed) && tmp.Roll != -1 && site != "")
            {
                switch (site)
                {
                case "JustDice": tmp.Verified = tmp.Roll == (decimal)DiceSite.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "PrimeDice": tmp.Verified = tmp.Roll == (decimal)PD.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "999Dice": tmp.Verified = tmp.Roll == (decimal)dice999.sGetLucky(tmp.serverseed, (tmp.clientseed), tmp.nonce, /*(long)(tmp.Roll*10000m),*/ tmp.serverhash); break;

                case "SafeDice": tmp.Verified = tmp.Roll == (decimal)SafeDice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "BetKing": tmp.Verified = tmp.Roll == (decimal)BetKing.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "BitDice": tmp.Verified = tmp.Roll == (decimal)bitdice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "FortuneJack": tmp.Verified = tmp.Roll == (decimal)FortuneJack.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "CryptoGames": tmp.Verified = tmp.Roll == (decimal)cryptogames.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "Bitsler": tmp.Verified = tmp.Roll == (decimal)Bitsler.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "SatoshiDice":
                case "MegaDice": tmp.Verified = tmp.Roll == (decimal)SatoshiDice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "Bitvest": tmp.Verified = tmp.Roll == (decimal)Bitvest.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "KingDice": tmp.Verified = tmp.Roll == (decimal)Kingdice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "YoloDice": tmp.Verified = tmp.Roll == (decimal)YoloDice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "DuckDice": tmp.Verified = tmp.Roll == (decimal)DuckDice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "NitroDice": tmp.Verified = tmp.Roll == (decimal)NitroDice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "WolfBet": tmp.Verified = tmp.Roll == (decimal)WolfBet.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "WinDice": tmp.Verified = tmp.Roll == (decimal)WinDice.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "Bit-Exo": tmp.Verified = tmp.Roll == (decimal)BitExo.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "FreeBitcoin": tmp.Verified = tmp.Roll == (decimal)Freebitcoin.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "Nitrogen Sports": tmp.Verified = tmp.Roll == (decimal)NitrogenSports.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;

                case "Stake": tmp.Verified = tmp.Roll == (decimal)Stake.sGetLucky(tmp.serverseed, tmp.clientseed, tmp.nonce); break;
                }
            }
            return(tmp);
        }