Exemplo n.º 1
0
        /// <summary>
        /// checks the mincombination on Match and betDomain and checks, which mincombination is larger
        /// is called by LimitHandling.MinCombinationReachedForAllBetDomains
        /// </summary>
        /// <param name="pBetDomain">the betDomain to check</param>
        /// <returns>the largest mincombination</returns>
        public static int MinCombination(BetDomainSr pBetDomain)
        {
            int     result    = pBetDomain.MinCombination;
            MatchSr tempMatch = pBetDomain.Match;

            if (result < tempMatch.MinCombination)
            {
                result = tempMatch.MinCombination;
            }
            ///Removed check for MinCombi in Tournament which is not used any more

            ///g GMA: 20.02.2008 no FranchisorToTournamentFactory on client
            //FranchisorToTournament tempF2T = FranchisorToTournamentFactory.LoadFranchisorToTournamentByQuery(" TournamentID = " + tempTournament.ORMID + " and FranchisorID = " + stationSr.Franchisor2Station.ORMID, null);
            //if (tempF2T != null)
            //{
            //    if (result < tempF2T.MinCombination)
            //    {
            //        result = tempF2T.MinCombination;
            //    }
            //}
            return(result);
        }
Exemplo n.º 2
0
        public void FillFromContainer(SportRadarLineContainer srlc)
        {
            this.Clear();

            FillFromArray <MatchSr>(srlc.Match, delegate(MatchSr mtch) { return(string.Format("{0}:{1}:{2}", mtch.MatchID, mtch.BtrMatchID, mtch.LiveBetStatusEx)); });
            FillFromArray <TournamentSr>(srlc.Tournament, delegate(TournamentSr trmt) { return(string.Format("{0}:'{1}'", trmt.TournamentID, trmt.DefaultName)); });
            FillFromArray <CategorySr>(srlc.Category, delegate(CategorySr ctrg) { return(string.Format("{0}:'{1}'", ctrg.CategoryID, ctrg.DefaultName)); });
            FillFromArray <SportSr>(srlc.Sport, delegate(SportSr sprt) { return(string.Format("{0}:'{1}'", sprt.SportID, sprt.DefaultName)); });
            FillFromArray <CountrySr>(srlc.Country, delegate(CountrySr cntr) { return(string.Format("{0}:'{1}'", cntr.CountryID, cntr.DefaultName)); });
            FillFromArray <BetDomainSr>(srlc.BetDomain, delegate(BetDomainSr bdmn) { return(string.Format("{0}:{1}:{2}", bdmn.BetDomainID, bdmn.BtrLiveBetID, BetDomainSr.GetStatusString(bdmn.Status))); });
            FillFromArray <OddSr>(srlc.Odd, delegate(OddSr bodd) { return(string.Format("{0}:{1}:{2}", bodd.OddID, bodd.Value, bodd.Active.Value ? "1" : "0")); });
            FillFromArray <CompetitorSr>(srlc.Competitor, delegate(CompetitorSr cmpt) { return(string.Format("{0}:'{1}':{2}", cmpt.CompetitorID, cmpt.DefaultName, cmpt.MultiStringID)); });
            FillFromArray <LanguageStringSr>(srlc.LanguageString, delegate(LanguageStringSr lstr) { return(string.Format("{0}:{1}", lstr.LanguageStringID, lstr.MultiStringID)); });
            FillFromArray <MultiStringSr>(srlc.MultiString, delegate(MultiStringSr mstr) { return(string.Format("{0}", mstr.MultiStringID)); });
            FillFromArray <LanguageSr>(srlc.Language, delegate(LanguageSr lng) { return(string.Format("{0}:'{1}':{2}", lng.LanguageID, lng.ShortName, lng.IsTerminalLanguage)); });
            FillFromArray <MultiStringGroupSr>(srlc.MultiStringGroup, delegate(MultiStringGroupSr msgp) { return(string.Format("{0}:'{1}'", msgp.MultiStringGroupID, msgp.MultiStringGroupTag)); });
        }