piwigodotnet/PiwigoDotnet/Piwigo.Client/Contract/Image.cs

45 lines
1.1 KiB
C#

using Newtonsoft.Json;
namespace Piwigo.Client.Contract;
public class Image
{
[JsonProperty("id")]
public int Id { get; init; }
[JsonProperty("width")]
public int Width { get; init; }
[JsonProperty("height")]
public int Height { get; init; }
[JsonProperty("hit")]
public int Hit { get; init; }
[JsonProperty("file")]
public string? File { get; init; }
[JsonProperty("name")]
public string? Name { get; init; }
[JsonProperty("comment")]
public string? Comment { get; init; }
[JsonProperty("date_creation")]
public DateTime? DateCreation { get; init; }
[JsonProperty("date_available")]
public DateTime? DateAvailable { get; init; }
[JsonProperty("page_url")]
public string? PageUrl { get; init; }
[JsonProperty("element_url")]
public string? ElementUrl { get; init; }
[JsonProperty("derivatives")]
public IDictionary<string, ImageDerivative>? Derivatives { get; init; }
[JsonProperty("categories")]
public IReadOnlyCollection<ImageAlbum>? Albums { get; init; }
}