Cleaned references and imports

This commit is contained in:
Matthew Burke
2023-07-27 19:15:49 -04:00
parent 09d86b86c2
commit 19153c9d02
23 changed files with 48 additions and 157 deletions

View File

@@ -1,13 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.IO;
using Newtonsoft.Json;
using System.Text;
namespace PWAPPv2.Source.API
{
@@ -82,7 +78,7 @@ namespace PWAPPv2.Source.API
text = sr.ReadToEnd();
}
}
catch(WebException wex)
catch (WebException wex)
{
text = new StreamReader(wex.Response.GetResponseStream()).ReadToEnd();
}
@@ -100,7 +96,7 @@ namespace PWAPPv2.Source.API
var response = client.PostAsync(apiUri, contetnt).Result;
if(response.IsSuccessStatusCode)
if (response.IsSuccessStatusCode)
{
return response.Content.ReadAsStringAsync().Result;
}