Пример #1
0
        public GameMetadata GetMetadata(string metadataId)
        {
            var gameData = new Game("GOGGame")
            {
                Provider   = Provider.GOG,
                ProviderId = metadataId
            };

            var gogLib = new GogLibrary();
            var data   = gogLib.UpdateGameWithMetadata(gameData);

            return(new GameMetadata(gameData, data.Icon, data.Image, data.BackgroundImage));
        }
Пример #2
0
        public GameMetadata GetGameData(string gameId)
        {
            var gameData = new Game("GOGGame")
            {
                Provider   = Provider.Steam,
                ProviderId = gameId
            };

            var steamLib = new GogLibrary();
            var data     = steamLib.UpdateGameWithMetadata(gameData);

            return(new GameMetadata(gameData, data.Icon, data.Image, data.BackgroundImage));
        }