Exemplo n.º 1
0
 public bool AddRoomToSpectetorGameList(IGame game)
 {
     lock (padlock)
     {
         try
         {
             if (game != null)
             {
                 bool alreadyIn = HasThisSpectetorGame(game);
                 if (!alreadyIn)
                 {
                     userDataProxy.AddGameToUserSpectetorGames(this.id, game.Id, game.GameNumber);
                     return(true);
                 }
             }
             return(false);
         }
         catch
         {
             return(false);
         }
     }
 }