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