Beispiel #1
0
 public frmWebPageUI(string text1, ref CookieList listRef1)
 {
     this._strURL = "";
     this._objCookieList = new CookieList();
     this._strURL = text1;
     this._objCookieList = listRef1;
 }
Beispiel #2
0
 public WebPageUI(string text2, string text1, CookieList list1)
 {
     this._strTitle = "";
     this._strURL = "";
     this._isToShowToolStrip = false;
     this._objCookieList = new CookieList();
     this._objCookieList = list1;
     this._strURL = text1;
     this._strTitle = text2;
 }
Beispiel #3
0
 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;
 }