예제 #1
0
        public bool IsValidTime(eTimeMatchType matchTimeType, int matchMinute)
        {
            if (matchTimeType == eTimeMatchType.H1 || matchTimeType == eTimeMatchType.H2)
            {
                return(matchMinute + MinTimeToBet < 45);
            }

            return(true);
        }
예제 #2
0
 private int CalTimeCheckScan(eTimeMatchType timeType, int minute)
 {
     if (timeType == eTimeMatchType.H1 && minute + TimeCheckScan > 47)
     {
         //int remainMinute = 45 - minute;
         return(TimeCheckScan + 17);
     }
     return(TimeCheckScan);
 }
예제 #3
0
 private int CalTimeCheckScan(eTimeMatchType timeType, int minute)
 {
     if (timeType == eTimeMatchType.H1)
     {
         if (minute > 39)
         {
             return(TimeCheckScan + 14);
         }
     }
     return(TimeCheckScan);
 }
예제 #4
0
        //public MatchOddDTO(string id, string matchID, eServerType serverType, string leagueID, string leagueName, string homeTeamName,
        // string awayTeamName, eTimeMatchType timeType, int minutes)
        //{
        //    this.ID = id;
        //    this.MatchID = matchID;
        //    this.ServerType = serverType;
        //    this.LeagueID = leagueID;
        //    this.LeagueName = leagueName;
        //    this.HomeTeamName = homeTeamName;
        //    this.AwayTeamName = awayTeamName;
        //    this.TimeType = timeType;
        //    this.Minutes = minutes;
        //}

        public MatchOddDTO(string matchID, eServerType serverType, string leagueID, string leagueName, string homeTeamName,
                           string awayTeamName, eTimeMatchType timeType, int minutes)
        {
            this.MatchID      = matchID;
            this.ServerType   = serverType;
            this.LeagueID     = leagueID;
            this.LeagueName   = leagueName;
            this.HomeTeamName = homeTeamName;
            this.AwayTeamName = awayTeamName;
            this.TimeType     = timeType;
            this.Minutes      = minutes;
            //OddChecks = new List<float>();
        }
예제 #5
0
 public MatchOddDTO(string matchID, string leagueName, string homeTeamName,
                    string awayTeamName, eTimeMatchType timeType, int minutes, string oddID, float odd, float homeOdd,
                    float awayOdd, eOddType oddType)
 {
     this.MatchID      = matchID;
     this.LeagueName   = leagueName;
     this.HomeTeamName = homeTeamName;
     this.AwayTeamName = awayTeamName;
     this.TimeType     = timeType;
     this.Minutes      = minutes;
     this.OddID        = oddID;
     this.Odd          = odd;
     this.HomeOdd      = homeOdd;
     this.AwayOdd      = awayOdd;
     this.OddType      = oddType;
     this.ServerType   = eServerType.Ibet;
 }
예제 #6
0
        public bool IsValidTime(eTimeMatchType matchTimeType, int matchMinute, eOddType oddType)
        {
            if (MinTimeToBet == 0)
            {
                return(true);
            }

            if (matchTimeType == eTimeMatchType.H1 &&
                (oddType == eOddType.HalfHCP || oddType == eOddType.HalfOU))
            {
                return(matchMinute + MinTimeToBet < 45);
            }

            if (matchTimeType == eTimeMatchType.H2)
            {
                return(matchMinute + MinTimeToBet < 45);
            }

            return(true);
        }