2022-10-07 13:43:19 +02:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
2022-10-15 00:07:59 +02:00
|
|
|
namespace Piwigo.Client.Contract;
|
2022-10-07 13:43:19 +02:00
|
|
|
|
2022-10-16 23:10:20 +02:00
|
|
|
internal class PiwigoResponse
|
2022-10-07 13:43:19 +02:00
|
|
|
{
|
|
|
|
[JsonProperty("stat")]
|
|
|
|
public string? Status { get; init; }
|
|
|
|
|
2022-10-16 22:58:38 +02:00
|
|
|
[JsonProperty("err")]
|
|
|
|
public int? Error { get; init; }
|
|
|
|
|
|
|
|
[JsonProperty("message")]
|
|
|
|
public string? Message { get; init; }
|
2022-10-16 23:10:20 +02:00
|
|
|
}
|
2022-10-16 22:58:38 +02:00
|
|
|
|
2022-10-16 23:10:20 +02:00
|
|
|
internal class PiwigoResponse<T> : PiwigoResponse
|
|
|
|
{
|
2022-10-07 13:43:19 +02:00
|
|
|
[JsonProperty("result")]
|
|
|
|
public T Result { get; init; } = default!;
|
|
|
|
}
|