splits typed response into response without result and response with result
This commit is contained in:
parent
37c262e74f
commit
181ccef825
@ -2,7 +2,7 @@ using Newtonsoft.Json;
|
|||||||
|
|
||||||
namespace Piwigo.Client.Contract;
|
namespace Piwigo.Client.Contract;
|
||||||
|
|
||||||
internal class PiwigoResponse<T>
|
internal class PiwigoResponse
|
||||||
{
|
{
|
||||||
[JsonProperty("stat")]
|
[JsonProperty("stat")]
|
||||||
public string? Status { get; init; }
|
public string? Status { get; init; }
|
||||||
@ -12,7 +12,10 @@ internal class PiwigoResponse<T>
|
|||||||
|
|
||||||
[JsonProperty("message")]
|
[JsonProperty("message")]
|
||||||
public string? Message { get; init; }
|
public string? Message { get; init; }
|
||||||
|
}
|
||||||
|
|
||||||
|
internal class PiwigoResponse<T> : PiwigoResponse
|
||||||
|
{
|
||||||
[JsonProperty("result")]
|
[JsonProperty("result")]
|
||||||
public T Result { get; init; } = default!;
|
public T Result { get; init; } = default!;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user