public AgentToClientBet(MatchBetNew new1, MatchNew new2, EnumCollection.eBetAmountStyle style1, int num1, int num2, string text1, FollowOddsOption option1) { this._intMaxBettingAttempt = 5; this._objBetAmountStyle = EnumCollection.eBetAmountStyle.Fixed; this._intBetAmountValue = 0; this._objMatchBet = new MatchBetNew(); this._objMatchClient = new MatchNew(); this._intBettingAttempt = 0; this._intBetSuccessCount = 0; this._intTargetAmount = 0; this._intBettedAmount = 0; this._intLastBetSuccessAmount = 0; this._isRemoved = false; this._strMeaningfulStatus = ""; this._strActionStatus = ""; this._isWaitingReset = false; this._objFollowOddsOption = new FollowOddsOption(); this._objMatchBet = new1; this._objMatchClient = new2; this._objBetAmountStyle = style1; this._intBetAmountValue = num1; this._intMaxBettingAttempt = num2; this._strActionStatus = text1; this._objFollowOddsOption = option1; this.UpdateTargetAmount(); }
public BetAmountStyleManagerUI(EnumCollection.eBetAmountStyle style1, bool flag1, int num1, string text1) { this._objBetAmountStyle = style1; this._isPercentOptionDisabled = flag1; this._intExtendedValue = num1; this._strSportBook = text1; }
public WebsiteBetStyle(string text1, EnumCollection.eBetAmountStyle style1) { this._strWebsite = ""; this._objBetStyle = EnumCollection.eBetAmountStyle.Fixed; this._intBetValue = 0; this._strWebsite = text1; this._objBetStyle = style1; if (style1 == EnumCollection.eBetAmountStyle.MaxBet) { _intBetValue = 1; } }
public WebsiteBetStyle(string text1, EnumCollection.eBetAmountStyle style1, int num1) { this._strWebsite = ""; this._objBetStyle = EnumCollection.eBetAmountStyle.Fixed; this._intBetValue = 0; this._strWebsite = text1; this._objBetStyle = style1; // modify Aorta 2010.12.13 if (style1 == EnumCollection.eBetAmountStyle.MaxBet) { num1 = 1; } this._intBetValue = num1; // end Aorta }
public WebSiteAbstractClass() { this.set__objBetQueueMonitor(new BetQueueMonitorEx(2, 120)); this._objGeneralProcessCallback = new TimerCallback(this.GeneralProcess); this._strAccountID = ""; this._strAccountPassword = ""; this._strLoginURL = ""; this._strRootURL = ""; this._objCookieList = new CookieList(); this._strLatestFullOddsSource = ""; this._strLatestPartOddsSource = ""; this._strViewState = ""; this._strEventValidation = ""; this._intPingMS = 0x1869f; this._intDefaultBetAmount = 50; this._objBetAmountStyle = EnumCollection.eBetAmountStyle.Fixed; this._intBetQueueMaxAttempt = 2; this._dblOddsDifferentBad = 0.0; this._dblOddsDifferentBetter = 0.08; this._intMaxBetLimiter = 0x98967f; this._intGoodSpiderRequest = 0; this._intBadSpiderRequest = 0; this._decMinCreditLimit = 500M; this._objSportType = EnumCollection.eSportType.Soccer; this._objAccountStatus = EnumCollection.eAccountStatus.Normal; this._isPerMatchLimitEnabled = false; this._isIndonOddsRecalculation = false; this._isToCheckBetlist = false; this._isToGetMatchResultList = true; this._isAccountBlocked = false; this._isAutoBetting = false; this._isAutoReLogin = false; this._isAutoAdjustToMinBetAmount = true; this._isToCheckBetCredit = true; this._strSpiderURL = ""; this._strSpiderFullPost = ""; this._strSpiderPartPost = ""; this._isProgramLoggerEnabled = true; this._isBetListLoggerEnabled = true; this._objSpiderMethod = EnumCollection.eSpiderMethod.Full; this._objBetOddsType = EnumCollection.eOddsType.Malay; this._isToGetRunningOdds = true; this._isToGetTodayOdds = true; this._isToGetEarlyOdds = false; this._isToGetSpecialOdds = true; this._isToGetOddEvenOdds = false; this._isToGetTotalGoalOdds = false; this._isToGetCorrectScoreOdds = false; this._isToGetOutRightOdds = false; this._isToIncludeFirstHalfOdds = true; this._isToInclude1X2Odds = false; this._isToGetOddsLite = false; this._isCanGetRunningOdds = false; this._isCanGetTodayOdds = false; this._isCanGetEarlyOdds = false; this._isCanGetSpecialOdds = false; this._isCanGetOddEvenOdds = false; this._isCanGetTotalGoalOdds = false; this._isCanGetCorrectScoreOdds = false; this._isCanGetOutRightOdds = false; this._intBetMinimumIntervalMS = 0x7d0; this._intSpiderMinimumIntervalMS = 0x3e8; this._intSpiderErrorCountLimit = 8; this._intSpiderErrorCountCurrent = 0; this._intTimeoutLimitPerSec = 15; this._intTimeoutCount = 0; this._intSpiderRunningIntervalSec = 50; this._intSpiderTodayIntervalSec = 30; this._intSpiderEarlyIntervalSec = 50; this._intSpiderSpecialIntervalSec = 130; this._intSpiderOddEvenIntervalSec = 30; this._intSpiderOutRightIntervalSec = 30; this._intSpiderTotalGoalIntervalSec = 30; this._intSpiderCorrectScoreIntervalSec = 30; this._intSpiderRunningCoolDownSec = 0; this._intSpiderTodayCoolDownSec = 0; this._intSpiderEarlyCoolDownSec = 0; this._intSpiderSpecialCoolDownSec = 0; this._intSpiderOddEvenCoolDownSec = 0; this._intSpiderOutRightCoolDownSec = 0; this._intSpiderTotalGoalCoolDownSec = 0; this._intSpiderCorrectScoreCoolDownSec = 0; this._strOddsRawFull = ""; this._strOddsRawRunning = ""; this._strOddsRawToday = ""; this._strOddsRawEarly = ""; this._strOddsRawSpecial = ""; this._strOddsRawTotalGoal = ""; this._strOddsRawOddEven = ""; this._strOddsRawCorrectScore = ""; this._strOddsRawOutRight = ""; this._objOddsRawRunningList = new List<string>(); this._objOddsRawTodayList = new List<string>(); this._objOddsRawEarlyList = new List<string>(); this._strAccountCurrency = ""; this._isToTryManualMatching = true; this._isSearchUsingSingleName = false; this._isToTryFuzzy = false; this._isToTrySimilarHDP = true; this._strInProcessBetPairID = ""; this._isBetPairCanGetTicket = true; this._isBetPairCanBet = false; this._strLoginStatus = ""; this._strLoginError = ""; this._isLoginSuccess = false; this._isLoggingIn = false; this._isBetting = false; this._isGettingFullOdds = false; this._isGettingPartOdds = false; this._isWaitingNextInternalSpiderStep = false; this._isWebPageOpened = false; this._isFirstGetOddsDone = false; this._datLatestSpiderStepStart = DateTime.Now; this._datLatestSpiderStart = DateTime.Now; this._intSpiderMS = 0; this._intSingleSpiderMS = 0; this._objSpiderMSRecordList = new List<int>(); this._intAverageSpiderMS = 0; this._isToUpdateMatchListSelected = true; this._objOddsChangeHistory = new List<double>(); this._intLoginFailCount = 0; this._intLoginFailCountLimit = 5; this._intServerBetlistRefreshRateSec = 3; this._objMatchLiteListFull = new List<MatchLite>(); this._objMatchLiteListRunning = new List<MatchLite>(); this._objMatchLiteListToday = new List<MatchLite>(); this._objMatchLiteListEarly = new List<MatchLite>(); this._objMatchLiteListSpecial = new List<MatchLite>(); this._objMatchListFull = new List<MatchNew>(); this._objMatchListSelected = new List<MatchNew>(); this._objMatchListRunning = new List<MatchNew>(); this._objMatchListToday = new List<MatchNew>(); this._objMatchListEarly = new List<MatchNew>(); this._objMatchListSpecial = new List<MatchNew>(); this._objMatchListTotalGoal = new List<MatchTotalGoal>(); this._objMatchListCorrectScore = new List<MatchCorrectScore>(); this._objMatchListOddEven = new List<MatchOddEven>(); this._objMatchListOutRight = new List<MatchOutRight>(); this._objBetListLive = new List<MatchBetNew>(); this._objBetListAll = new List<MatchBetNew>(); this._objBetListFailed = new List<MatchBetNew>(); this._objProgramBetListPermanent = new List<MatchBetNew>(); this._objServerBetListPermanent = new List<MatchBetNew>(); this._objServerBetListCurrent = new List<MatchBetNew>(); this._objPostList = new List<DataDescription>(); this._objMatchResultList = new MatchResultList(); this._objRunningPageOptionList = new List<string>(); this._objTodayPageOptionList = new List<string>(); this._objEarlyPageOptionList = new List<string>(); this._objErrorLogger = new Logger(); this.lngTimeOut = 0x4e20L; this.isLastCallSuccess = true; }
protected void UpdateBetAmountStyle(EnumCollection.eBetAmountStyle style1, int num1) { try { this._objBetAmountStyle = style1; this._intDefaultBetAmount = num1; this.SaveAllSettingToFile(); } catch (Exception exception1) { ProjectData.SetProjectError(exception1); Exception exception = exception1; this._objErrorLogger.write(this._strName + ": EXCEPTION IN UpdateBetAmountStyle: " + exception.Message); this.WriteProgramLogger(this._strName + ": EXCEPTION IN UpdateBetAmountStyle: " + exception.Message); ProjectData.ClearProjectError(); } }
public void set_BetAmountStyle(EnumCollection.eBetAmountStyle style1) { this._objBetAmountStyle = style1; }
public void LoadMiscSettingFromFile(string text1) { try { XmlReader reader = null; reader = new XmlTextReader(text1); while (reader.Read()) { if (((reader.NodeType != XmlNodeType.Element) || (reader.Name.ToUpper() != "Website".ToUpper())) || (reader.AttributeCount <= 0)) { continue; } League league = new League(); while (reader.MoveToNextAttribute()) { string str3 = reader.Name.ToUpper(); if (str3 == "AccountID".ToUpper()) { this._strAccountID = reader.Value; } else { if (str3 == "AccountPassword".ToUpper()) { this._strAccountPassword = CommonFunction.DecryptString128Bit(reader.Value, "heng8888"); continue; } if (str3 == "LoginURL".ToUpper()) { this._strLoginURL = reader.Value; continue; } if (str3 == "BetAmountStyle".ToUpper()) { this._objBetAmountStyle = (EnumCollection.eBetAmountStyle) ((int) Math.Round(Conversion.Val(reader.Value))); continue; } if (str3 == "DefaultBetAmount".ToUpper()) { this._intDefaultBetAmount = (int) Math.Round(Conversion.Val(reader.Value)); continue; } if (str3 == "IsBetAmountLockerEnabled".ToUpper()) { this._objBetAmountLocker.set_IsEnabled(Conversion.Val(reader.Value) != 0.0); this.get__objBetQueueMonitor().get_BetAmountLock().set_IsEnabled(Conversion.Val(reader.Value) != 0.0); continue; } if (str3 == "BetAmountLockerAmount".ToUpper()) { this._objBetAmountLocker.set_BetAmount((int) Math.Round(Conversion.Val(reader.Value))); this.get__objBetQueueMonitor().get_BetAmountLock().set_BetAmount((int) Math.Round(Conversion.Val(reader.Value))); continue; } if (str3 == "BetOddsType".ToUpper()) { this._objBetOddsType = (EnumCollection.eOddsType) ((int) Math.Round(Conversion.Val(reader.Value))); continue; } if (str3 == "OddsDifferentBad".ToUpper()) { this._dblOddsDifferentBad = Conversions.ToDouble(reader.Value); continue; } if (str3 == "OddsDifferentBetter".ToUpper()) { this._dblOddsDifferentBetter = Conversions.ToDouble(reader.Value); continue; } if (str3 == "PerMatchLimit".ToUpper()) { this._objPerMatchLimitList.set_AmountLimit((int) Math.Round(Conversion.Val(reader.Value))); continue; } if (str3 == "PerMatchCountLimit".ToUpper()) { this._objPerMatchLimitList.set_CountLimit((int) Math.Round(Conversion.Val(reader.Value))); continue; } if (str3 == "PerMatchLimitType".ToUpper()) { this._objPerMatchLimitList.set_PerMatchLimitType((EnumCollection.ePerMatchLimitType) ((int) Math.Round(Conversion.Val(reader.Value)))); continue; } if (str3 == "PerMatchLimitMethod".ToUpper()) { this._objPerMatchLimitList.set_Type((int) Math.Round(Conversion.Val(reader.Value))); continue; } if (str3 == "MinCreditLimitAction".ToUpper()) { this._objMinCreditLimitAction = (EnumCollection.eProgramAction) Conversions.ToInteger(reader.Value); continue; } if (str3 == "MinCreditLimit".ToUpper()) { this._decMinCreditLimit = Conversions.ToDecimal(reader.Value); continue; } if (str3 == "IsToGetLiveOdds".ToUpper()) { this._isToGetRunningOdds = Conversions.ToInteger(reader.Value) > 0; continue; } if (str3 == "IsToGetNonLiveOdds".ToUpper()) { this._isToGetTodayOdds = Conversions.ToInteger(reader.Value) > 0; continue; } if (str3 == "IsToGetEarlyOdds".ToUpper()) { this._isToGetEarlyOdds = Conversions.ToInteger(reader.Value) > 0; continue; } if (str3 == "IsToIncludeFirstHalfOdds".ToUpper()) { this._isToIncludeFirstHalfOdds = Conversions.ToInteger(reader.Value) > 0; continue; } if (str3 == "IsToInclude1X2Odds".ToUpper()) { this._isToInclude1X2Odds = Conversions.ToInteger(reader.Value) > 0; continue; } if (str3 == "IsPerMatchLimitEnabled".ToUpper()) { this._isPerMatchLimitEnabled = Conversions.ToInteger(reader.Value) > 0; continue; } if (str3 == "SpiderMethod".ToUpper()) { this._objSpiderMethod = (EnumCollection.eSpiderMethod) Conversions.ToInteger(reader.Value); continue; } if (str3 == "IsToTryManualMatching".ToUpper()) { this._isToTryManualMatching = Conversions.ToInteger(reader.Value) > 0; continue; } if (str3 == "IsSearchUsingSingleName".ToUpper()) { this._isSearchUsingSingleName = Conversions.ToInteger(reader.Value) > 0; continue; } if (str3 == "IsToTryFuzzy".ToUpper()) { this._isToTryFuzzy = Conversions.ToInteger(reader.Value) > 0; continue; } if (str3 == "IsToTrySimilarHDP".ToUpper()) { this._isToTrySimilarHDP = Conversions.ToInteger(reader.Value) > 0; continue; } if (str3 == "SpiderRunningIntervalSec".ToUpper()) { this._intSpiderRunningIntervalSec = Conversions.ToInteger(reader.Value); continue; } if (str3 == "SpiderTodayIntervalSec".ToUpper()) { this._intSpiderTodayIntervalSec = Conversions.ToInteger(reader.Value); continue; } if (str3 == "SpiderEarlyIntervalSec".ToUpper()) { this._intSpiderEarlyIntervalSec = Conversions.ToInteger(reader.Value); } } } } reader.Close(); } catch (Exception exception1) { ProjectData.SetProjectError(exception1); Exception exception = exception1; this._objErrorLogger.write(this._strName + ": EXCEPTION IN LoadMiscSettingFromFile: " + exception.Message); this.WriteProgramLogger(this._strName + ": EXCEPTION IN LoadMiscSettingFromFile: " + exception.Message); ProjectData.ClearProjectError(); } }
public WebsiteBetStyle() { this._strWebsite = ""; this._objBetStyle = EnumCollection.eBetAmountStyle.Fixed; this._intBetValue = 0; }
public void setSBOBetAmountStyle(EnumCollection.eBetAmountStyle sboBetAmountStyle) { this.sboBetAmountStyle = sboBetAmountStyle; }
public void setIBCBetAmountStyle(EnumCollection.eBetAmountStyle ibcBetAmountStyle) { this.ibcBetAmountStyle = ibcBetAmountStyle; }