Skip to content

Commit

Permalink
fix response Deserialize
Browse files Browse the repository at this point in the history
  • Loading branch information
Cappi1998 committed Apr 25, 2024
1 parent 055168a commit 2932902
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions ASF_Manager/ASF_Manager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,5 @@
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
8 changes: 4 additions & 4 deletions ASF_Manager/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private void btn_check_connect_Click(object sender, EventArgs e)
.GET()
.Execute();

ASFResponse_MainConfig.Root result = JsonConvert.DeserializeObject<ASFResponse_MainConfig.Root>(response);
ASFResponse_MainConfig.Root result = JsonConvert.DeserializeObject<ASFResponse_MainConfig.Root>(response.Content);

try
{
Expand Down Expand Up @@ -105,7 +105,7 @@ private void btn_ASF_Restart_Click(object sender, EventArgs e)
.POST()
.Execute();

ASFResponse_BotsResume result = JsonConvert.DeserializeObject<ASFResponse_BotsResume>(response);
ASFResponse_BotsResume result = JsonConvert.DeserializeObject<ASFResponse_BotsResume>(response.Content);

if (!result.Success == true)
{
Expand Down Expand Up @@ -150,7 +150,7 @@ private void btn_wallet_Click(object sender, EventArgs e)
.GET()
.Execute();

ASFResponse_BotsResume asf_response = JsonConvert.DeserializeObject<ASFResponse_BotsResume>(response);
ASFResponse_BotsResume asf_response = JsonConvert.DeserializeObject<ASFResponse_BotsResume>(response.Content);

foreach (var asf_bot in asf_response.Result)
{
Expand Down Expand Up @@ -266,7 +266,7 @@ public static List<BotInfo> Update_Bots()
.GET()
.Execute();

ASFResponse_BotsResume asf_response = JsonConvert.DeserializeObject<ASFResponse_BotsResume>(response);
ASFResponse_BotsResume asf_response = JsonConvert.DeserializeObject<ASFResponse_BotsResume>(response.Content);

List<BotInfo> BotsList = new List<BotInfo>();

Expand Down

0 comments on commit 2932902

Please sign in to comment.