public static string ToNormalString(this EBetType betType) { switch (betType) { case EBetType.Win: return("Победы"); case EBetType.Total: return("Тоталы"); case EBetType.IndTotlal: return("Инд.Тоталы"); case EBetType.Fora: return("Форы"); case EBetType.Corner: return("Угловые"); case EBetType.WinInSet: return("Победа в Сете"); case EBetType.WinInGame: return("Победа в Гейме"); case EBetType.WinPoints: return("Выигрыши очка"); case EBetType.WinInCurrentGame: return("Победа в текущем гейме"); case EBetType.Goals: return("Голы"); default: throw new ArgumentOutOfRangeException(nameof(betType), (object)betType, (string)null); } }
public static int ConvertToServerBetId(ESport sport, EBetType betType) { return(EnumsHelper._correctSportValue[sport][betType]); }
/// <summary> /// Creates a new instance of a BetLimitObject /// </summary> /// <param name="betType">The betting type for the game</param> /// <param name="betCap">The cap on bets for the game</param> public BetLimitObject(EBetType betType, double?betCap) { BetType = betType; BetCap = betCap; }