private Game ImportNewGame(Models.Order.TpkdDict.Tpk tpkd)
        {
            GameInfo gameInfo = new GameInfo()
            {
                Name     = tpkd.human_name,
                GameId   = GetGameId(tpkd),
                Platform = HUMBLE_KEYS_PLATFORM_NAME + tpkd.key_type,
                Source   = HUMBLE_KEYS_SRC_NAME,
                Tags     = new List <string>(),
                Links    = new List <Link>(),
            };

            gameInfo.Tags.Add(string.IsNullOrEmpty(tpkd.redeemed_key_val) ? UNREDEEMED_STR : REDEEMED_STR);

            if (!string.IsNullOrWhiteSpace(tpkd.gamekey))
            {
                gameInfo.Links.Add(MakeLink(tpkd.gamekey));
            }

            return(PlayniteApi.Database.ImportGame(gameInfo, this));
        }
        private Game ImportNewGame(Models.Order.TpkdDict.Tpk tpkd)
        {
            GameInfo gameInfo = new GameInfo()
            {
                Name     = tpkd.human_name,
                GameId   = GetGameId(tpkd),
                Platform = "Humble Key: " + tpkd.key_type_human_name,
                Source   = "Humble Keys",
                Tags     = new List <string>(),
                Links    = new List <Link>(),
            };

            gameInfo.Tags.Add("Humble Key: " + tpkd.key_type_human_name);
            gameInfo.Tags.Add(string.IsNullOrEmpty(tpkd.redeemed_key_val) ? "Unredeemed" : "Redeemed");

            if (!string.IsNullOrWhiteSpace(tpkd.gamekey))
            {
                gameInfo.Links.Add(MakeLink(tpkd.gamekey));
            }

            return(PlayniteApi.Database.ImportGame(gameInfo, this));
        }