internal static async Task <bool> SetApprovedStatusAsync(CallBackDataAnon x) { var approved = Approved(x); if (x.userId != null) { var url = "https://spottedpolimi.altervista.org/s/setapproved.php?id=" + x.userId.Value + "&password="******"&approved=" + approved; var x2 = await Web.DownloadHtmlAsync(url, RequestCacheLevel.NoCacheNoStore); ThreadAsync.dictionary_webpost[x.userId.Value].approved = approved; ThreadAsync.WriteDict(); return(true); } return(false); }
private static char Approved(CallBackDataAnon x) { var s = CallBackDataAnon.ResultToString(x.resultQueueEnum); return(s[0]); }