Switch to different cat api in example plugin (#3006)

* switch to different cat api

* damn forgot json constructor

* check for empty array in responce

* revert meowresponse.cs

* use firstordefault()
This commit is contained in:
Rudokhvist
2023-09-20 13:40:41 +03:00
committed by GitHub
parent 69aaca3bad
commit 9163b57c3e
2 changed files with 7 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ namespace ArchiSteamFarm.CustomPlugins.ExamplePlugin;
#pragma warning disable CA1812 // False positive, the class is used during json deserialization
[SuppressMessage("ReSharper", "ClassCannotBeInstantiated")]
internal sealed class MeowResponse {
[JsonProperty("file", Required = Required.Always)]
[JsonProperty("url", Required = Required.Always)]
internal readonly Uri URL = null!;
[JsonConstructor]