// 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; } }
// 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; } }
public SiteName(SiteName.Values site) { Site = site; }
public PartyHandHistoryRegexParserImpl(SiteName.Values site = SiteName.Values.PartyPoker) : base() { _siteName = site; }