public GameInfo findGame(JsonSlotGamePromoListing promoGame) { var gameClub = promoGame.ProductCode; var gameCode = promoGame.HtmlGameId; var gameTitle = promoGame.GameTitle; var matchedGame = new GameInfo(); switch (gameClub) { case "slot": var handler = new GPIHandler(commonVariables.CurrentMemberSessionId); var gpiCategory = handler.Process(); foreach (var category in gpiCategory) { matchedGame = category.New.Find(x => x.Id == gameCode); if (matchedGame != null) { break; } matchedGame = category.Current.Find(x => x.Id == gameCode); if (matchedGame != null) { break; } } break; case "ags": commonCulture.appData.GetRootResourceNonLanguage("/Slots/ClubApollo.aspx", out xeResources); IEnumerable <XElement> apollo = xeResources.Element("Category").Element("Slots").Elements(); break; case "ctxm": case "betsoft": // return for now commonCulture.appData.getRootResource("/Slots/ClubDivino.aspx", out xeResources); break; case "png": case "isoftbet": commonCulture.appData.getRootResource("/Slots/ClubGallardo.aspx", out xeResources); break; case "vanguard": commonCulture.appData.getRootResource("/Slots/ClubMassimo.aspx", out xeResources); break; case "playtech": commonCulture.appData.getRootResource("/Slots/ClubPalazzo.aspx", out xeResources); break; default: break; } return(matchedGame); }
protected void Page_Load(object sender, EventArgs e) { CheckAgentAndRedirect("/_static/v2new/slots.html"); if (Page.IsPostBack) { return; } SetTitle(commonCulture.ElementValues.getResourceXPathString("/Products/ClubBravado/Label", commonVariables.ProductsXML)); var handler = new GPIHandler(commonVariables.CurrentMemberSessionId); var gpiCategory = handler.Process(); StringBuilder sbGames = new StringBuilder(); foreach (var category in gpiCategory) { sbGames.AppendFormat("<div id='div{0}' class='box'><div class='game-card-box'>", category.Title); AddGames(sbGames, category.New); AddGames(sbGames, category.Current); sbGames.Append("</div></div>"); } divContainer.InnerHtml = Convert.ToString(sbGames); }
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) { return; } SetTitle(commonCulture.ElementValues.getResourceXPathString("/Products/ClubGallardo/Label", commonVariables.ProductsXML)); var opSettings = new OperatorSettings(System.Configuration.ConfigurationManager.AppSettings.Get("Operator")); var addGpi = Convert.ToBoolean(opSettings.Values.Get("GPIAddOtheClubs")); var isbHandler = new ISBHandler(commonVariables.CurrentMemberSessionId, "ClubGallardo", commonVariables.GetSessionVariable("CurrencyCode")); var isbCategory = isbHandler.Process(); var pngHandler = new PNGHandler(commonVariables.CurrentMemberSessionId, "ClubGallardo"); var pngCategory = pngHandler.Process(); IEnumerable <IGrouping <string, GameCategoryInfo> > games; if (addGpi) { var gpiHandler = new GPIHandler(commonVariables.CurrentMemberSessionId); var gpiCategory = gpiHandler.Process(true); isbCategory[0].Current = gpiHandler.InsertInjectedGames(gpiCategory, isbCategory[0].Current); games = pngCategory.Union(isbCategory).Union(gpiCategory).GroupBy(x => x.Title); } else { games = pngCategory.Union(isbCategory).GroupBy(x => x.Title); } StringBuilder sbGames = new StringBuilder(); foreach (var category in games) { sbGames.AppendFormat("<div data-role='collapsible' data-collapsed='false' data-theme='b' data-content-theme='a' data-mini='true'><h4>{0}</h4>", category.Key); sbGames.AppendFormat("<div id='div{0}' class='div-product'><div><ul>", category.Key); foreach (var item in category) { AddGames(sbGames, item.New); AddGames(sbGames, item.Current); } sbGames.Append("</ul></div></div></div>"); } divContainer.InnerHtml = Convert.ToString(sbGames); }
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) { return; } SetTitle(commonCulture.ElementValues.getResourceXPathString("/Products/ClubDivino/Label", commonVariables.ProductsXML)); var opSettings = new OperatorSettings(System.Configuration.ConfigurationManager.AppSettings.Get("Operator")); var addGpi = Convert.ToBoolean(opSettings.Values.Get("GPIAddOtheClubs")); var sbGames = new StringBuilder(); var bsHandler = new BSHandler(commonVariables.CurrentMemberSessionId, "ClubDivino", "FundTransfer", GetDevice()); var bsCategory = bsHandler.Process(); var cxHandler = new CTXMHandler(commonVariables.CurrentMemberSessionId); var cxCategory = cxHandler.Process(); var uc8Handler = new UC8Handler(commonVariables.CurrentMemberSessionId, "ClubDivino", "FundTransfer"); var uc8Category = uc8Handler.Process(); IEnumerable <IGrouping <string, GameCategoryInfo> > games; if (addGpi) { var gpiHandler = new GPIHandler(commonVariables.CurrentMemberSessionId); var gpiCategory = gpiHandler.Process(true); cxCategory[0].Current = gpiHandler.InsertInjectedGames(gpiCategory, cxCategory[0].Current); games = bsCategory.Union(cxCategory).Union(uc8Category).Union(gpiCategory).GroupBy(x => x.Title); } else { games = bsCategory.Union(cxCategory).Union(uc8Category).GroupBy(x => x.Title); } foreach (var group in games) { AddGamesPerDevice(sbGames, group); } divContainer.InnerHtml = Convert.ToString(sbGames); }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["provider"] != null && Request.QueryString["gameId"] != null) { var provider = Request.QueryString.Get("provider"); var gameId = Request.QueryString.Get("gameId"); var gameName = Request.QueryString.Get("gameName"); var gameType = Request.QueryString.Get("gameType"); var lang = Request.QueryString.Get("gameLang"); var lobby = Request.QueryString.Get("lobby"); if (provider == Convert.ToString(GameProvider.TTG)) { var url = GameSettings.GetGameUrl(GameProvider.TTG, GameLinkSetting.Real); url = url.Replace("{GAME}", gameId) .Replace("{LANG}", lang) .Replace("{LOBBY}", lobby) .Replace("{GAMETYPE}", gameType) .Replace("{GAMENAME}", gameName).Replace("{TOKEN}", userInfo.CurrentSessionId); if (XDocument.Load(url).Root.Element("error_code").Value == "0") { var gamelink = XDocument.Load(url).Root.Element("redirect_url").Value; Response.Redirect(gamelink, true); } else { var sc = "<script>$(document).ready( function () { window.w88Mobile.Growl.shout('" + XDocument.Load(url).Root.Element("error_msg").Value + "', function () {window.close();} ); });</script>"; ClientScript.RegisterClientScriptBlock(this.GetType(), Guid.NewGuid().ToString(), sc, false); } } } if (Page.IsPostBack) { return; } CheckSupportedCurrency(); SetTitle(commonCulture.ElementValues.getResourceXPathString("/Products/ClubApollo/Label", commonVariables.ProductsXML)); var opSettings = new OperatorSettings(System.Configuration.ConfigurationManager.AppSettings.Get("Operator")); var addGpi = Convert.ToBoolean(opSettings.Values.Get("GPIAddOtheClubs")); var handler = new QTHandler(commonVariables.CurrentMemberSessionId, "ClubApollo"); var qtCategory = handler.Process(); var ppHandler = new PPHandler(commonVariables.CurrentMemberSessionId, "ClubApollo", "FundTransfer"); var ppCategory = ppHandler.Process(true); var ttgHandler = new TTGHandler(commonVariables.CurrentMemberSessionId, "ClubApollo", "FundTransfer"); var ttgCategory = ttgHandler.Process(true); IEnumerable <IGrouping <string, GameCategoryInfo> > games; if (addGpi) { var gpiHandler = new GPIHandler(commonVariables.CurrentMemberSessionId); var gpiCategory = gpiHandler.Process(true); qtCategory[0].Current = handler.InsertInjectedGames(gpiCategory, qtCategory[0].Current); games = qtCategory.Union(ppCategory).Union(ttgCategory).Union(gpiCategory).GroupBy(x => x.Title); } else { games = qtCategory.Union(ppCategory).Union(ttgCategory).GroupBy(x => x.Title); } var sbGames = new StringBuilder(); foreach (var category in games) { sbGames.AppendFormat("<div data-role='collapsible' data-collapsed='false' data-theme='b' data-content-theme='a' data-mini='true'><h4>{0}</h4>", category.Key); sbGames.AppendFormat("<div id='div{0}' class='div-product'><div><ul>", category.Key); foreach (var item in category) { AddGames(sbGames, item.New); AddGames(sbGames, item.Current); } sbGames.Append("</ul></div></div></div>"); } divContainer.InnerHtml = Convert.ToString(sbGames); }
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) { return; } //var handler = new GNSHandler(commonVariables.CurrentMemberSessionId, "ClubNuovo", "FundTransfer"); //var gnsCategory = handler.Process(); if (!string.IsNullOrWhiteSpace(commonCookie.CookieCurrency)) { if ((commonCookie.CookieCurrency.ToLower() == "vnd") || (commonCookie.CookieCurrency.ToLower() == "idr")) { _currencySupported = false; } } PLSHandler plsHandler; List <GameCategoryInfo> plsCategory = null; if (_currencySupported) { plsHandler = new PLSHandler(commonVariables.CurrentMemberSessionId, "ClubNuovo", "FundTransfer"); plsCategory = plsHandler.Process(); } var mrsHandler = new MRSHandler(commonVariables.CurrentMemberSessionId, "ClubNuovo", "FundTransfer"); var mrsCategory = mrsHandler.Process(); var opSettings = new OperatorSettings(System.Configuration.ConfigurationManager.AppSettings.Get("Operator")); var addGpi = Convert.ToBoolean(opSettings.Values.Get("GPIAddOtheClubs")); IEnumerable <IGrouping <string, GameCategoryInfo> > games; if (addGpi) { var gpiHandler = new GPIHandler(commonVariables.CurrentMemberSessionId); var gpiCategory = gpiHandler.Process(true); //gnsCategory[0].Current = gpiHandler.InsertInjectedGames(gpiCategory, gnsCategory[0].Current); //games = gnsCategory.Union(plsCategory).Union(gpiCategory).GroupBy(x => x.Title); if (_currencySupported) { plsCategory[0].Current = gpiHandler.InsertInjectedGames(gpiCategory, plsCategory[0].Current); games = plsCategory.Union(mrsCategory).Union(gpiCategory).GroupBy(x => x.Title); } else { mrsCategory[0].Current = gpiHandler.InsertInjectedGames(gpiCategory, mrsCategory[0].Current); games = mrsCategory.Union(gpiCategory).GroupBy(x => x.Title); } } else { games = _currencySupported ? plsCategory.Union(mrsCategory).GroupBy(x => x.Title) : mrsCategory.GroupBy(x => x.Title); } var sbGames = new StringBuilder(); foreach (var category in games) { sbGames.AppendFormat("<div data-role='collapsible' data-collapsed='false' data-theme='b' data-content-theme='a' data-mini='true'><h4>{0}</h4>", category.Key); sbGames.AppendFormat("<div id='div{0}' class='div-product'><div><ul>", category.Key); foreach (var item in category) { AddGames(sbGames, item.New); AddGames(sbGames, item.Current); } sbGames.Append("</ul></div></div></div>"); } divContainer.InnerHtml = Convert.ToString(sbGames); }