Newer
Older
TestingWithoutInterfaces / src / PublicApi / CatalogItemEndpoints / CatalogItemListPagedEndpoint.ListPagedCatalogItemRequest.cs
@Derek Comartin Derek Comartin on 5 Dec 2022 570 bytes Init
namespace Microsoft.eShopWeb.PublicApi.CatalogItemEndpoints;

public class ListPagedCatalogItemRequest : BaseRequest
{
    public int? PageSize { get; init; }
    public int? PageIndex { get; init; }
    public int? CatalogBrandId { get; init; }
    public int? CatalogTypeId { get; init; }

    public ListPagedCatalogItemRequest(int? pageSize, int? pageIndex, int? catalogBrandId, int? catalogTypeId)
    {
        PageSize = pageSize ?? 0;
        PageIndex = pageIndex ?? 0;
        CatalogBrandId = catalogBrandId;
        CatalogTypeId = catalogTypeId;
    }
}