2022-10-21 00:23:54 +02:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
namespace Piwigo.Client.Contract;
|
|
|
|
|
|
|
|
public class PagedImages
|
|
|
|
{
|
|
|
|
protected PagedImages()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-10-25 17:19:13 +02:00
|
|
|
public PagedImages(ImagePagingInfo paging, IReadOnlyCollection<Image> images)
|
2022-10-21 00:23:54 +02:00
|
|
|
{
|
|
|
|
Paging = paging ?? throw new ArgumentNullException(nameof(paging));
|
|
|
|
Images = images ?? throw new ArgumentNullException(nameof(images));
|
|
|
|
}
|
|
|
|
|
|
|
|
[JsonProperty("paging")]
|
2022-10-25 17:19:13 +02:00
|
|
|
public ImagePagingInfo Paging { get; init; } = null!;
|
2022-10-21 00:23:54 +02:00
|
|
|
|
|
|
|
[JsonProperty("images")]
|
|
|
|
public IReadOnlyCollection<Image> Images { get; init; } = null!;
|
|
|
|
}
|