21 lines
428 B
C#
21 lines
428 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace Piwigo.Client.Contract;
|
|
|
|
internal class PiwigoResponse
|
|
{
|
|
[JsonProperty("stat")]
|
|
public string? Status { get; init; }
|
|
|
|
[JsonProperty("err")]
|
|
public int? Error { get; init; }
|
|
|
|
[JsonProperty("message")]
|
|
public string? Message { get; init; }
|
|
}
|
|
|
|
internal class PiwigoResponse<T> : PiwigoResponse
|
|
{
|
|
[JsonProperty("result")]
|
|
public T Result { get; init; } = default!;
|
|
} |