예제 #1
0
        // So the same parser can be used for It and Fr variations
        public OnGameFastParserImpl(SiteName.Values siteName = SiteName.Values.OnGame)
        {
            _siteName = siteName;

            _numberFormatInfo = new NumberFormatInfo
            {
                NegativeSign             = "-",
                CurrencyDecimalSeparator = ".",
                CurrencyGroupSeparator   = ",",
            };

            switch ((SiteName.Values)siteName)
            {
            case SiteName.Values.OnGameIt:
            case SiteName.Values.OnGameFr:
                _numberFormatInfo.CurrencySymbol = "€";
                _currency = Currency.EURO;
                break;

            default:
                _numberFormatInfo.CurrencySymbol = "$";
                _currency = Currency.USD;
                break;
            }
        }
예제 #2
0
        // So the same parser can be used for It and Fr variations
        public PartyPokerFastParserImpl(SiteName.Values siteName = SiteName.Values.PartyPoker)
        {
            _siteName = siteName;

            switch (siteName)
            {
            case SiteName.Values.PartyPokerEs:
            case SiteName.Values.PartyPokerFr:
            case SiteName.Values.PartyPokerIt:
                NumberFormatInfo.CurrencySymbol = "€";
                _currency = Currency.EURO;
                break;

            // PartyPoker + PartyPokerNJ
            default:
                NumberFormatInfo.CurrencySymbol = "$";
                _currency = Currency.USD;
                break;
            }
        }
예제 #3
0
 public SiteName(SiteName.Values site)
 {
     Site = site;
 }
예제 #4
0
 public PartyHandHistoryRegexParserImpl(SiteName.Values site = SiteName.Values.PartyPoker)
     : base()
 {
     _siteName = site;
 }