From 29329021bb62957da75144f93d8d3d7f42466103 Mon Sep 17 00:00:00 2001 From: fabio Date: Thu, 25 Apr 2024 09:58:35 -0300 Subject: [PATCH] fix response Deserialize --- ASF_Manager/ASF_Manager.csproj | 3 --- ASF_Manager/Main.cs | 8 ++++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/ASF_Manager/ASF_Manager.csproj b/ASF_Manager/ASF_Manager.csproj index 0089b8f..787b134 100644 --- a/ASF_Manager/ASF_Manager.csproj +++ b/ASF_Manager/ASF_Manager.csproj @@ -102,8 +102,5 @@ True - - - \ No newline at end of file diff --git a/ASF_Manager/Main.cs b/ASF_Manager/Main.cs index 97dab15..e506d03 100644 --- a/ASF_Manager/Main.cs +++ b/ASF_Manager/Main.cs @@ -54,7 +54,7 @@ private void btn_check_connect_Click(object sender, EventArgs e) .GET() .Execute(); - ASFResponse_MainConfig.Root result = JsonConvert.DeserializeObject(response); + ASFResponse_MainConfig.Root result = JsonConvert.DeserializeObject(response.Content); try { @@ -105,7 +105,7 @@ private void btn_ASF_Restart_Click(object sender, EventArgs e) .POST() .Execute(); - ASFResponse_BotsResume result = JsonConvert.DeserializeObject(response); + ASFResponse_BotsResume result = JsonConvert.DeserializeObject(response.Content); if (!result.Success == true) { @@ -150,7 +150,7 @@ private void btn_wallet_Click(object sender, EventArgs e) .GET() .Execute(); - ASFResponse_BotsResume asf_response = JsonConvert.DeserializeObject(response); + ASFResponse_BotsResume asf_response = JsonConvert.DeserializeObject(response.Content); foreach (var asf_bot in asf_response.Result) { @@ -266,7 +266,7 @@ public static List Update_Bots() .GET() .Execute(); - ASFResponse_BotsResume asf_response = JsonConvert.DeserializeObject(response); + ASFResponse_BotsResume asf_response = JsonConvert.DeserializeObject(response.Content); List BotsList = new List();