From 181ccef825c406e1036851a58ea7ba7b41e40e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Sun, 16 Oct 2022 23:10:20 +0200 Subject: [PATCH] splits typed response into response without result and response with result --- PiwigoDotnet/Piwigo.Client/Contract/PiwigoResponse.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PiwigoDotnet/Piwigo.Client/Contract/PiwigoResponse.cs b/PiwigoDotnet/Piwigo.Client/Contract/PiwigoResponse.cs index 772938c..9605144 100644 --- a/PiwigoDotnet/Piwigo.Client/Contract/PiwigoResponse.cs +++ b/PiwigoDotnet/Piwigo.Client/Contract/PiwigoResponse.cs @@ -2,7 +2,7 @@ using Newtonsoft.Json; namespace Piwigo.Client.Contract; -internal class PiwigoResponse +internal class PiwigoResponse { [JsonProperty("stat")] public string? Status { get; init; } @@ -12,7 +12,10 @@ internal class PiwigoResponse [JsonProperty("message")] public string? Message { get; init; } +} +internal class PiwigoResponse : PiwigoResponse +{ [JsonProperty("result")] public T Result { get; init; } = default!; } \ No newline at end of file