Wrong conversion

This commit is contained in:
glax 2024-01-17 22:49:46 +01:00
parent bd82a7e0e9
commit c333adb2e4
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@
<Authors>Glax</Authors>
<RepositoryUrl>https://github.com/C9Glax/CShocker</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Version>1.1.9</Version>
<Version>1.1.10</Version>
</PropertyGroup>
<ItemGroup>

View File

@ -22,9 +22,9 @@ public class ShockerJsonConverter : JsonConverter
{
case ShockerApi.OpenShockHttp:
return new OpenShockHttp(
jo.SelectToken("ShockerIds")!.Value<List<string>>()!,
jo.SelectToken("IntensityRange")!.Value<IntensityRange>()!,
jo.SelectToken("DurationRange")!.Value<DurationRange>()!,
jo.SelectToken("ShockerIds")!.ToObject<List<string>>()!,
jo.SelectToken("IntensityRange")!.ToObject<IntensityRange>()!,
jo.SelectToken("DurationRange")!.ToObject<DurationRange>()!,
jo.SelectToken("Endpoint")!.Value<string>()!,
jo.SelectToken("ApiKey")!.Value<string>()!
);