Пример #1
0
        public MatchBetNew GenerateMatchBet(EnumCollection.eBetTarget target1)
        {
            MatchBetNew new3 = new MatchBetNew();
            new3.set_HomeName(this.get_HomeName());
            new3.set_AwayName(this.get_AwayName());
            new3.set_HomeMatchingID(this.get_HomeMatchingID());
            new3.set_AwayMatchingID(this.get_AwayMatchingID());
            new3.set_League(this.get_League());
            new3.set_MatchDate(this.get_MatchTime().ToString());
            new3.set_ManualMatchID(this._intManualMatchingID);
            new3.set_HomeScore(this._intHomeScore);
            new3.set_AwayScore(this._intAwayScore);
            new3.set_RunningStatus(this._objRunningStatus);
            new3.set_GameType(this._objGameType);
            new3.set_Company(this._strWebsite);
            new3.set_BetTarget(target1);
            new3.set_Info1(this._strInfo1);
            new3.set_Info2(this._strInfo2);
            new3.set_Info3(this._strInfo3);
            new3.set_Info4(this._strInfo4);
            switch (target1)
            {
                case EnumCollection.eBetTarget.FT_Home:
                    new3.set_SelectedMatch(this.get_HomeName());
                    new3.set_HDP(this.get_FTHDP());
                    new3.set_Odds(this.get_FT_HomeOdds());
                    new3.set_BetType(EnumCollection.eBetType.HDP);
                    new3.set_ID(this.get_FTHDP_ID());
                    new3.set_ID2(this.get_FTHDP_ID2());
                    new3.set_HomeColor(this.get_FTHomeColor());
                    new3.set_AwayColor(this.get_FTAwayColor());
                    new3.set_BetCoverage(EnumCollection.eBetCoverage.FT);
                    new3.set_HomeBetLink(this._strFT_HomeBetLink);
                    new3.set_AwayBetLink(this._strFT_AwayBetLink);
                    new3.set_SelectedBetLink(this._strFT_HomeBetLink);
                    new3.set_MatchID(this._strFT_ID);
                    return new3;

                case EnumCollection.eBetTarget.FT_Away:
                    new3.set_SelectedMatch(this.get_AwayName());
                    new3.set_HDP(this.get_FTHDP());
                    new3.set_Odds(this.get_FT_AwayOdds());
                    new3.set_BetType(EnumCollection.eBetType.HDP);
                    new3.set_ID(this.get_FTHDP_ID());
                    new3.set_ID2(this.get_FTHDP_ID2());
                    new3.set_HomeColor(this.get_FTHomeColor());
                    new3.set_AwayColor(this.get_FTAwayColor());
                    new3.set_BetCoverage(EnumCollection.eBetCoverage.FT);
                    new3.set_HomeBetLink(this._strFT_HomeBetLink);
                    new3.set_AwayBetLink(this._strFT_AwayBetLink);
                    new3.set_SelectedBetLink(this._strFT_AwayBetLink);
                    new3.set_MatchID(this._strFT_ID);
                    return new3;

                case EnumCollection.eBetTarget.FT_Over:
                    new3.set_SelectedMatch("Over");
                    new3.set_HDP(this.get_FTOU());
                    new3.set_Odds(this.get_FT_OverOdds());
                    new3.set_BetType(EnumCollection.eBetType.OU);
                    new3.set_ID(this.get_FTOU_ID());
                    new3.set_ID2(this.get_FTOU_ID2());
                    new3.set_HomeColor(this.get_FTHomeColor());
                    new3.set_AwayColor(this.get_FTAwayColor());
                    new3.set_BetCoverage(EnumCollection.eBetCoverage.FT);
                    new3.set_HomeBetLink(this._strFT_OverBetLink);
                    new3.set_AwayBetLink(this._strFT_UnderBetLink);
                    new3.set_SelectedBetLink(this._strFT_OverBetLink);
                    new3.set_MatchID(this._strFT_ID);
                    return new3;

                case EnumCollection.eBetTarget.FT_Under:
                    new3.set_SelectedMatch("Under");
                    new3.set_HDP(this.get_FTOU());
                    new3.set_Odds(this.get_FT_UnderOdds());
                    new3.set_BetType(EnumCollection.eBetType.OU);
                    new3.set_ID(this.get_FTOU_ID());
                    new3.set_ID2(this.get_FTOU_ID2());
                    new3.set_HomeColor(this.get_FTHomeColor());
                    new3.set_AwayColor(this.get_FTAwayColor());
                    new3.set_BetCoverage(EnumCollection.eBetCoverage.FT);
                    new3.set_HomeBetLink(this._strFT_OverBetLink);
                    new3.set_AwayBetLink(this._strFT_UnderBetLink);
                    new3.set_SelectedBetLink(this._strFT_UnderBetLink);
                    new3.set_MatchID(this._strFT_ID);
                    return new3;

                case EnumCollection.eBetTarget.Half_Home:
                    new3.set_SelectedMatch(this.get_HomeName());
                    new3.set_HDP(this.get_HalfHDP());
                    new3.set_Odds(this.get_Half_HomeOdds());
                    new3.set_BetType(EnumCollection.eBetType.HDP);
                    new3.set_ID(this.get_HalfHDP_ID());
                    new3.set_ID2(this.get_HalfHDP_ID2());
                    new3.set_HomeColor(this.get_HalfHomeColor());
                    new3.set_AwayColor(this.get_HalfAwayColor());
                    new3.set_BetCoverage(EnumCollection.eBetCoverage.FirstHalf);
                    new3.set_HomeBetLink(this._strHalf_HomeBetLink);
                    new3.set_AwayBetLink(this._strHalf_AwayBetLink);
                    new3.set_SelectedBetLink(this._strHalf_HomeBetLink);
                    new3.set_MatchID(this._strHalf_ID);
                    return new3;

                case EnumCollection.eBetTarget.Half_Away:
                    new3.set_SelectedMatch(this.get_AwayName());
                    new3.set_HDP(this.get_HalfHDP());
                    new3.set_Odds(this.get_Half_AwayOdds());
                    new3.set_BetType(EnumCollection.eBetType.HDP);
                    new3.set_ID(this.get_HalfHDP_ID());
                    new3.set_ID2(this.get_HalfHDP_ID2());
                    new3.set_HomeColor(this.get_HalfHomeColor());
                    new3.set_AwayColor(this.get_HalfAwayColor());
                    new3.set_BetCoverage(EnumCollection.eBetCoverage.FirstHalf);
                    new3.set_HomeBetLink(this._strHalf_HomeBetLink);
                    new3.set_AwayBetLink(this._strHalf_AwayBetLink);
                    new3.set_SelectedBetLink(this._strHalf_AwayBetLink);
                    new3.set_MatchID(this._strHalf_ID);
                    return new3;

                case EnumCollection.eBetTarget.Half_Over:
                    new3.set_SelectedMatch("Over");
                    new3.set_HDP(this.get_HalfOU());
                    new3.set_Odds(this.get_Half_OverOdds());
                    new3.set_BetType(EnumCollection.eBetType.OU);
                    new3.set_ID(this.get_HalfOU_ID());
                    new3.set_ID2(this.get_HalfOU_ID2());
                    new3.set_HomeColor(this.get_HalfHomeColor());
                    new3.set_AwayColor(this.get_HalfAwayColor());
                    new3.set_BetCoverage(EnumCollection.eBetCoverage.FirstHalf);
                    new3.set_HomeBetLink(this._strHalf_OverBetLink);
                    new3.set_AwayBetLink(this._strHalf_UnderBetLink);
                    new3.set_SelectedBetLink(this._strHalf_OverBetLink);
                    new3.set_MatchID(this._strHalf_ID);
                    return new3;

                case EnumCollection.eBetTarget.Half_Under:
                    new3.set_SelectedMatch("Under");
                    new3.set_HDP(this.get_HalfOU());
                    new3.set_Odds(this.get_Half_UnderOdds());
                    new3.set_BetType(EnumCollection.eBetType.OU);
                    new3.set_ID(this.get_HalfOU_ID());
                    new3.set_ID2(this.get_HalfOU_ID2());
                    new3.set_HomeColor(this.get_HalfHomeColor());
                    new3.set_AwayColor(this.get_HalfAwayColor());
                    new3.set_BetCoverage(EnumCollection.eBetCoverage.FirstHalf);
                    new3.set_HomeBetLink(this._strHalf_OverBetLink);
                    new3.set_AwayBetLink(this._strHalf_UnderBetLink);
                    new3.set_SelectedBetLink(this._strHalf_UnderBetLink);
                    new3.set_MatchID(this._strHalf_ID);
                    return new3;
                // add 1x2
                case EnumCollection.eBetTarget.FT_1:
                    new3.set_SelectedMatch("1");
                    new3.set_HDP(this.get_FT1X2());
                    new3.set_Odds(this.get_FT_1X2HomeOddsString());
                    new3.set_BetType(EnumCollection.eBetType.lX2);
                    new3.set_ID(this.get_FT1X2_ID());
                    new3.set_ID2(this.get_FT1X2_ID());
                    new3.set_HomeColor(this.get_FTHomeColor());
                    new3.set_AwayColor(this.get_FTAwayColor());
                    new3.set_BetCoverage(EnumCollection.eBetCoverage.FT);
                    new3.set_MatchID(this.get_FT_ID());
                    return new3;
                case EnumCollection.eBetTarget.FT_X:
                    new3.set_SelectedMatch("X");
                    new3.set_HDP(this.get_FT1X2());
                    new3.set_Odds(this.get_FT_1X2DrawOddsString());
                    new3.set_BetType(EnumCollection.eBetType.lX2);
                    new3.set_ID(this.get_FT1X2_ID());
                    new3.set_ID2(this.get_FT1X2_ID());
                    new3.set_HomeColor(this.get_FTHomeColor());
                    new3.set_AwayColor(this.get_FTAwayColor());
                    new3.set_BetCoverage(EnumCollection.eBetCoverage.FT);
                    new3.set_MatchID(this.get_FT_ID());
                    return new3;
                case EnumCollection.eBetTarget.FT_2:
                    new3.set_SelectedMatch("2");
                    new3.set_HDP(this.get_FT1X2());
                    new3.set_Odds(this.get_FT_1X2AwayOddsString());
                    new3.set_BetType(EnumCollection.eBetType.lX2);
                    new3.set_ID(this.get_FT1X2_ID());
                    new3.set_ID2(this.get_FT1X2_ID());
                    new3.set_HomeColor(this.get_FTHomeColor());
                    new3.set_AwayColor(this.get_FTAwayColor());
                    new3.set_BetCoverage(EnumCollection.eBetCoverage.FT);
                    new3.set_MatchID(this.get_FT_ID());
                    return new3;
                case EnumCollection.eBetTarget.Half_1:
                    new3.set_SelectedMatch("1");
                    new3.set_HDP(this.get_Half1X2());
                    new3.set_Odds(this.get_Half_1X2HomeOddsString());
                    new3.set_BetType(EnumCollection.eBetType.lX2);
                    new3.set_ID(this.get_Half1X2_ID());
                    new3.set_ID2(this.get_Half1X2_ID());
                    new3.set_HomeColor(this.get_HalfHomeColor());
                    new3.set_AwayColor(this.get_HalfAwayColor());
                    new3.set_BetCoverage(EnumCollection.eBetCoverage.FirstHalf);
                    new3.set_MatchID(this.get_Half_ID());
                    return new3;
                case EnumCollection.eBetTarget.Half_X:
                    new3.set_SelectedMatch("X");
                    new3.set_HDP(this.get_Half1X2());
                    new3.set_Odds(this.get_Half_1X2DrawOddsString());
                    new3.set_BetType(EnumCollection.eBetType.lX2);
                    new3.set_ID(this.get_Half1X2_ID());
                    new3.set_ID2(this.get_Half1X2_ID());
                    new3.set_HomeColor(this.get_HalfHomeColor());
                    new3.set_AwayColor(this.get_HalfAwayColor());
                    new3.set_BetCoverage(EnumCollection.eBetCoverage.FirstHalf);
                    new3.set_MatchID(this.get_Half_ID());
                    return new3;
                case EnumCollection.eBetTarget.Half_2:
                    new3.set_SelectedMatch("2");
                    new3.set_HDP(this.get_Half1X2());
                    new3.set_Odds(this.get_Half_1X2AwayOddsString());
                    new3.set_BetType(EnumCollection.eBetType.lX2);
                    new3.set_ID(this.get_Half1X2_ID());
                    new3.set_ID2(this.get_Half1X2_ID());
                    new3.set_HomeColor(this.get_HalfHomeColor());
                    new3.set_AwayColor(this.get_HalfAwayColor());
                    new3.set_BetCoverage(EnumCollection.eBetCoverage.FirstHalf);
                    new3.set_MatchID(this.get_Half_ID());
                    return new3;
            }
            return new3;
        }
Пример #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;
 }