Я очень новичок в программировании и хочу проверить, безопасен ли URL клиента или подозревается ли он в вредоносном ПО.Ссылка на библиотеку: https://github.com/acastaner/safebrowsinglookup
LookupClient client = new LookupClient("someApiKey", "someClientName");
ResponseType response = client.Lookup(url);
switch (response)
{
case ResponseType.OK:
consoleMessage = "URL appears to be safe.";
break;
case ResponseType.MALWARE:
consoleMessage = "URL is suspected of hosting malware.";
break;
case ResponseType.MALWARE_UNWANTED:
consoleMessage = "URL is suspected of hosting malware and unwanted software.";
break;
case ResponseType.PHISHING:
consoleMessage = "URL is suspected of phishing.";
break;
case ResponseType.PHISHING_MALWARE:
consoleMessage = "URL is suspected of phishing and hosting malware.";
break;
case ResponseType.PHISHING_MALWARE_UNWANTED:
consoleMessage = "URL is suspected of phishing and hosting malware and unwanted software.";
break;
case ResponseType.PHISHING_UNWANTED:
consoleMessage = "URL is suspected of phishing and hosting unwanted software.";
break;
case ResponseType.UNWANTED:
consoleMessage = "URL is suspected of hosting unwanted software.";
break;
}
Я получаю сообщение об ошибке типа
Невозможно скрыть преобразование типа System.Threading.Tasks.Task в SafeBrowsingLookup.ResponseType "в" ResponseType response= client.Lookup (url);