Beispiel #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;
 }
Beispiel #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
     });
 }
Beispiel #3
0
 public void AddGame(int gameID, string gameName)
 {
     CacheGame cacheGame = new CacheGame();
     cacheGame.AddToCache(new GameInfo() { ID = gameID, Name = gameName });
 }
Beispiel #4
0
 public GameInfo[] GetGame()
 {
     CacheGame cacheGame = new CacheGame();
     return cacheGame.GetGame().ToArray();
 }
Beispiel #5
0
 public GameInfo GetGameObj(int gameID)
 {
     CacheGame cacheGame = new CacheGame();
     return cacheGame.GetGame(gameID);
 }
Beispiel #6
0
 public string GetGameName(int gameID)
 {
     CacheGame cacheGame = new CacheGame();
     return cacheGame.GetGameName(gameID);
 }
Beispiel #7
0
 public void RemoveGame(int gameID)
 {
     CacheGame cacheGame = new CacheGame();
     cacheGame.RemoveGame(gameID);
 }
Beispiel #8
0
 public GameInfo[] GetOfficialGame()
 {
     CacheGame cacheGame = new CacheGame();
     return cacheGame.GetOfficialGame();
 }