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)); }
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)); }