public GameDescriptor(SiteName siteName,
                       GameType gameType,
                       Buyin buyin,
                       TableType tableType,
                       SeatType seatType)
     : this(PokerFormat.SitAndGo, siteName, gameType, buyin, tableType, seatType)
 {
 }
 public GameDescriptor(SiteName siteName,
                       GameType gameType,
                       Buyin buyin,
                       TableType tableType,
                       SeatType seatType)
     : this(PokerFormat.SitAndGo, siteName, gameType, buyin, tableType, seatType)
 {
 }
 public TournamentSummary(string id, bool sitAndGo, Buyin buyin, int players = 0, decimal winnings = 0, int position = 0)
 {
     Id       = id;
     SitAndGo = sitAndGo;
     Buyin    = buyin;
     Players  = players;
     Winnings = winnings;
     Position = position;
 }
Beispiel #4
0
        public string ToBuyinFormatString(bool includeAdditionalInfos = true)
        {
            var output = String.Format("{0}{1} ({0}{2}+{0}{3})", Buyin.GetCurrencySymbol(),
                                       (Buyin.Total), Buyin.PrizePool, Buyin.Rake);

            if (includeAdditionalInfos)
            {
                output = String.Format("{0} {1} [{2}] ", output, GameType.ToString(),
                                       TableType.ToString());
            }

            return(output);
        }
Beispiel #5
0
        public static SitAndGoTriple Parse(string sitAndGoTriple)
        {
            string buyinString     = sitAndGoTriple.Split('_')[0];
            string tableTypeString = sitAndGoTriple.Split('_')[1];
            string gameTypeString  = sitAndGoTriple.Split('_')[2];

            GameType gameType = (GameType)Enum.Parse(typeof(GameType), gameTypeString, true);

            TableType tableType = TableType.Parse(tableTypeString);
            Buyin     buyin     = Buyin.ParseDbSafeString(buyinString);

            return(new SitAndGoTriple(buyin, tableType, gameType));
        }
 public GameDescriptor(PokerFormat pokerFormat,
                       SiteName siteName,
                       GameType gameType,
                       Buyin buyin,
                       TableType tableType,
                       SeatType seatType)
 {
     PokerFormat = pokerFormat;
     Site        = siteName;
     GameType    = gameType;
     Buyin       = buyin;
     TableType   = tableType;
     SeatType    = seatType;
 }
 public GameDescriptor(PokerFormat pokerFormat,
                       SiteName siteName,
                       GameType gameType,
                       Buyin buyin,
                       TableType tableType,
                       SeatType seatType)
 {
     PokerFormat = pokerFormat;
     Site = siteName;
     GameType = gameType;
     Buyin = buyin;
     TableType = tableType;
     SeatType = seatType;
 }
Beispiel #8
0
 public string ToDisplayName()
 {
     return(Buyin.ToString(CultureInfo.CurrentCulture, false, "+") + " " + GameTypeUtils.GetShortName(GameType) + " [" + TableType.ToString().Replace("-", ", ") + "] ");
 }
Beispiel #9
0
 public override string ToString()
 {
     return(Buyin.ToDbSafeString() + "_" + TableType.ToString() + "_" + GameType);
 }
Beispiel #10
0
 public SitAndGoTriple(Buyin buyin, TableType tableType, GameType gameType)
 {
     Buyin     = buyin;
     TableType = tableType;
     GameType  = gameType;
 }
 public SitAndGoTriple(Buyin buyin, TableType tableType, GameType gameType)
 {
     Buyin = buyin;
     TableType = tableType;
     GameType = gameType;
 }