public HowLongToBeatDatabase(HowLongToBeat plugin, IPlayniteAPI PlayniteApi, HowLongToBeatSettings PluginSettings, string PluginUserDataPath) : base(PlayniteApi, PluginSettings, PluginUserDataPath) { PluginName = "HowLongToBeat"; ControlAndCreateDirectory(PluginUserDataPath, "HowLongToBeat"); howLongToBeatClient = new HowLongToBeatClient(plugin, PlayniteApi); }
public HowLongToBeatClient(HowLongToBeat plugin, IPlayniteAPI PlayniteApi) { _plugin = plugin; _PlayniteApi = PlayniteApi; webViews = PlayniteApi.WebViews.CreateOffscreenView(); UrlPostData = UrlBase + "submit"; UrlLogin = UrlBase + "login"; UrlLogOut = UrlBase + "login?t=out"; UrlUserStats = UrlBase + "user?n={0}&s=stats"; UrlUserStatsMore = UrlBase + "user_stats_more"; UrlUserStatsGameList = UrlBase + "user_games_list"; UrlUserStatsGameDetails = UrlBase + "user_games_detail"; UrlSearch = UrlBase + "search_results.php"; UrlGame = UrlBase + "game.php?id={0}"; }