Ejemplo n.º 1
0
 public override List<MatchBetNew> GenerateServerBetListFullFromText(string text1)
 {
     int num = 0;
     string str3 = "";
     string str2 = "";
     List<string> list2 = new List<string>();
     List<MatchBetNew> list3 = new List<MatchBetNew>();
     list2 = CommonFunction.SeperateStringBySymbol2(text1, "<tr valign=\"top");
     foreach (string str in list2)
     {
         MatchBetNew item = new MatchBetNew();
         num = 0;
         str2 = str.ToLower();
         item.set_ReceiptID(CommonFunction.substring2(str2, num, "ref no:", "</", ref num).Trim().ToUpper());
         item.set_SelectedMatch(CommonFunction.substring2(str2, num, "<span ", ">", "</", ref num).Trim());
         str3 = CommonFunction.substring2(str2, num, "<span ", ">", "</", ref num).Replace("<b>", "").Replace("</b>", "").Trim();
         item.set_HDP(SportBookFunction.ConvertHDPType(str3));
         List<string> list4 = CommonFunction.SeperateStringBySymbol2(CommonFunction.substring2(str2, num, "</strong>", "/>", "<", ref num).Trim(), "-vs-");
         if (list4.Count == 2)
         {
             item.set_HomeName(list4[0].Trim());
             item.set_AwayName(list4[1].Trim());
             item.set_OddsString(CommonFunction.substring2(str2, num, "oddsclass", ">", "</", ref num).Trim());
             if ((((item.get_ReceiptID() != string.Empty) & (item.get_HomeName() != string.Empty)) & (item.get_AwayName() != string.Empty)) & (item.get_SelectedMatch() != string.Empty))
             {
                 item.set_ReceiptStatus(EnumCollection.eBetReceiptStatus.Confirm);
                 str3 = CommonFunction.substring2(str2, num, "center\">", "tabcontbk\">", "</", ref num).Trim();
                 if (str3.Contains("waiting"))
                 {
                     item.set_ReceiptStatus(EnumCollection.eBetReceiptStatus.Waiting);
                 }
                 else if (str3.Contains("reject") | str3.Contains("cancel"))
                 {
                     item.set_ReceiptStatus(EnumCollection.eBetReceiptStatus.Reject);
                 }
                 item.set_Company(base._strWebsiteName);
                 list3.Add(item);
             }
         }
     }
     return list3;
 }
Ejemplo n.º 2
0
 public MatchBetNew Clone()
 {
     MatchBetNew new3 = new MatchBetNew();
     new3.set_CreateDate(this._datCreate);
     new3.set_SportType(this._objSportType);
     new3.set_MatchID(this._strMatchID);
     new3.set_ID(this._strID);
     new3.set_ID2(this._strID2);
     new3.set_Company(this._strCompany);
     new3.set_League(this._strLeague);
     new3.set_HomeName(this._strHomeName);
     new3.set_AwayName(this._strAwayName);
     new3.set_SelectedMatch(this._strMatchSelected);
     new3.set_HomeColor(this._clrHome);
     new3.set_AwayColor(this._clrAway);
     new3.set_HomeBetLink(this._strHomeBetLink);
     new3.set_AwayBetLink(this._strAwayBetLink);
     new3.set_SelectedBetLink(this._strSelectedBetLink);
     new3.set_MatchDate(this._strMatchDate);
     new3.set_BetDate(this._strBetDate);
     new3.set_HDP(this._strHdp);
     new3.set_Odds(this._dblOdds);
     new3.set_BetAmount(this._strAmount);
     new3.set_OddsType(this._objOddsType);
     new3.set_BetCoverage(this._objBetCoverage);
     new3.set_BetType(this._objBetType);
     new3.set_BetTarget(this._objBetTarget);
     new3.set_BetFollowMethod(this._objBetFollowMethod);
     new3.set_MemberName(this._strMemberName);
     new3.set_MaxBetAmount(this._strMaxBet);
     new3.set_HomeScore(this._intHomeScore);
     new3.set_AwayScore(this._intAwayScore);
     new3.set_Description(this._strDescription);
     new3.set_HomeMatchingID(this._intHomeMatchingID);
     new3.set_AwayMatchingID(this._intAwayMatchingID);
     new3.set_HomeMatchingName(this._strHomeMatchingName);
     new3.set_AwayMatchingName(this._strAwayMatchingName);
     new3.set_LeagueMatchingID(this._intLeagueMatchingID);
     new3.set_GameType(this._objGameType);
     new3.set_RunningStatus(this._objRunningStatus);
     new3.set_EstimatePayout(this._dclEstimatePayout);
     new3.set_MatchResult(this._objMatchResult);
     if (this._objMatchResultInfo != null)
     {
         new3.set_MatchResultInfo(this._objMatchResultInfo.CloneObject());
     }
     new3.set_Company(this._strCompany);
     new3.set_ReceiptID(this._strReceiptID);
     new3.set_IPAddress(this._strIPAddress);
     new3.set_ClientName(this._strClientName);
     new3.set_IsUpdated(this.get_IsUpdated());
     new3.set_UniqueID(this.get_UniqueID());
     new3.set_ReceiptStatus(this._objReceiptStatus);
     new3.set_IsReceiptOccupied(this._isReceiptOccupied);
     new3.set_Info1(this.get_Info1());
     new3.set_Info2(this.get_Info2());
     new3.set_Info3(this.get_Info3());
     new3.set_Info4(this.get_Info4());
     new3.GenerateUpperCaseInfo();
     return new3;
 }