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

22 lines
561 B
C#

using Newtonsoft.Json;
namespace Piwigo.Client.Contract;
public class PagedImages
{
protected PagedImages()
{
}
public PagedImages(ImagePagingInfo paging, IReadOnlyCollection<Image> images)
{
Paging = paging ?? throw new ArgumentNullException(nameof(paging));
Images = images ?? throw new ArgumentNullException(nameof(images));
}
[JsonProperty("paging")]
public ImagePagingInfo Paging { get; init; } = null!;
[JsonProperty("images")]
public IReadOnlyCollection<Image> Images { get; init; } = null!;
}