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