Add support for adding appIDs from store

This commit is contained in:
JustArchi
2016-11-17 21:30:17 +01:00
parent b937ba9307
commit 1063da5124
3 changed files with 50 additions and 1 deletions

View File

@@ -242,6 +242,22 @@ namespace ArchiSteamFarm {
return false;
}
internal async Task<HtmlDocument> UrlPostToHtmlDocumentRetry(string request, ICollection<KeyValuePair<string, string>> data = null, string referer = null) {
if (string.IsNullOrEmpty(request)) {
ArchiLogger.LogNullError(nameof(request));
return null;
}
string content = await UrlPostToContentRetry(request, data, referer).ConfigureAwait(false);
if (string.IsNullOrEmpty(content)) {
return null;
}
HtmlDocument htmlDocument = new HtmlDocument();
htmlDocument.LoadHtml(WebUtility.HtmlDecode(content));
return htmlDocument;
}
internal async Task<T> UrlPostToJsonResultRetry<T>(string request, ICollection<KeyValuePair<string, string>> data = null, string referer = null) {
if (string.IsNullOrEmpty(request)) {
ArchiLogger.LogNullError(nameof(request));