Wrong conversion
This commit is contained in:
parent
bd82a7e0e9
commit
c333adb2e4
@ -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>
|
||||
|
@ -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>()!
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user