onebeyond/onebeyond-studio-core

View on GitHub
src/OneBeyond.Studio.Application.SharedKernel/Entities/Dto/PagedList.cs

Summary

Maintainability
A
0 mins
Test Coverage
using System.Collections.Generic;

namespace OneBeyond.Studio.Application.SharedKernel.Entities.Dto;

/// <summary>
/// List of entities with their total count
/// </summary>
/// <typeparam name="TEntity"></typeparam>
public struct PagedList<TEntity>
{
    /// <summary>
    /// Total number of items avaialable.
    /// </summary>
    public int Count { get; set; }

    /// <summary>
    /// Requested page items.
    /// </summary>
    public IReadOnlyCollection<TEntity> Data { get; set; }
}