private static ulong GetLiveCasinoTableStatusHash(ceDomainConfigEx domain) { StringBuilder sb = new StringBuilder(); List <ceLiveCasinoTableBaseEx> tables = LiveCasinoTableAccessor.GetDomainTables(domain.DomainID, null, true, true) .OrderBy(t => t.ID).ToList(); foreach (ceLiveCasinoTableBaseEx table in tables) { sb.AppendFormat("{0}-{1}\n", table.ID, table.IsOpen(domain.DomainID)); } return(CRC64.ComputeAsAsciiString(sb.ToString())); }
private static ulong ParseXProLiveCasinoGameList(ceDomainConfigEx domain) { try { using (GamMatrixClient client = new GamMatrixClient()) { XProGamingAPIRequest request = new XProGamingAPIRequest() { GetGamesListWithLimits = true, GetGamesListWithLimitsGameType = (int)XProGaming.GameType.AllGames, GetGamesListWithLimitsOnlineOnly = 0, //GetGamesListWithLimitsUserName = "******" }; request = client.SingleRequest <XProGamingAPIRequest>(domain.DomainID, request); if (string.IsNullOrWhiteSpace(request.GetGamesListWithLimitsResponse)) { return(0L); } string xml = request.GetGamesListWithLimitsResponse; XProGaming.Game.ParseXml(domain.DomainID, xml); return(CRC64.ComputeAsAsciiString(xml)); } } catch (GmException gex) { if (gex.ReplyResponse.ErrorCode == "SYS_1008") { return(0L); } Logger.Exception(gex); } catch (Exception ex) { Logger.Exception(ex); } return(0L); }