Esempio n. 1
0
        public GameInformation GetGameInformation(int gameId)
        {
            return(Operation(() =>
            {
                CheckIsUserAuthenticated();
                if (!serverManager.IsUserInGame(LoggedUser, gameId))
                {
                    throw new Exception("Can't get information about a game you are not in");
                }

                var info = serverManager.GetGameInformation(LoggedUser, gameId);

                return info;
            }));
        }