Exemple #1
0
 public GameInfo GetGameInfo(int gameId)
 {
     CacheGame cacheGame = new CacheGame();
     var list = cacheGame.GetGame();
     var gameInfo = new GameInfo();
     foreach (var item in list)
     {
         if (item.ID == gameId)
         {
             gameInfo = item;
             break;
         }
     }
     return gameInfo;
 }
Exemple #2
0
 public void AddGameNew(int gameID, string gameName, string currency, decimal multiple, string gameWord, string agentsID, bool isRelease, DateTime releaseDate, string payStyle, string SocketServer, int SocketPort)
 {
     CacheGame cacheGame = new CacheGame();
     cacheGame.AddToCache(new GameInfo()
     {
         ID = gameID,
         Name = gameName,
         Currency = currency,
         Multiple = multiple,
         GameWord = gameWord,
         AgentsID = agentsID,
         IsRelease = isRelease,
         ReleaseDate = releaseDate,
         PayStyle = payStyle,
         SocketServer = SocketServer,
         SocketPort = SocketPort
     });
 }
Exemple #3
0
 public void AddGame(int gameID, string gameName)
 {
     CacheGame cacheGame = new CacheGame();
     cacheGame.AddToCache(new GameInfo() { ID = gameID, Name = gameName });
 }
Exemple #4
0
 public GameInfo[] GetGame()
 {
     CacheGame cacheGame = new CacheGame();
     return cacheGame.GetGame().ToArray();
 }
Exemple #5
0
 public GameInfo GetGameObj(int gameID)
 {
     CacheGame cacheGame = new CacheGame();
     return cacheGame.GetGame(gameID);
 }
Exemple #6
0
 public string GetGameName(int gameID)
 {
     CacheGame cacheGame = new CacheGame();
     return cacheGame.GetGameName(gameID);
 }
Exemple #7
0
 public void RemoveGame(int gameID)
 {
     CacheGame cacheGame = new CacheGame();
     cacheGame.RemoveGame(gameID);
 }
Exemple #8
0
 public GameInfo[] GetOfficialGame()
 {
     CacheGame cacheGame = new CacheGame();
     return cacheGame.GetOfficialGame();
 }