diff --git a/academiesContracts/Dfe.Academies.Contracts/Dfe.Academies.Contracts.csproj b/academiesContracts/Dfe.Academies.Contracts/Dfe.Academies.Contracts.csproj index 84c1daf..0553c02 100644 --- a/academiesContracts/Dfe.Academies.Contracts/Dfe.Academies.Contracts.csproj +++ b/academiesContracts/Dfe.Academies.Contracts/Dfe.Academies.Contracts.csproj @@ -11,7 +11,7 @@ README.md https://github.com/DFE-Digital/academisation-nuget-packages git - 1.0.2 + 1.0.3 diff --git a/academiesContracts/Dfe.Academies.Contracts/Establishments/EstablishmentDto.cs b/academiesContracts/Dfe.Academies.Contracts/V4/Establishments/EstablishmentDto.cs similarity index 100% rename from academiesContracts/Dfe.Academies.Contracts/Establishments/EstablishmentDto.cs rename to academiesContracts/Dfe.Academies.Contracts/V4/Establishments/EstablishmentDto.cs diff --git a/academiesContracts/Dfe.Academies.Contracts/V4/PagedDataResponse.cs b/academiesContracts/Dfe.Academies.Contracts/V4/PagedDataResponse.cs new file mode 100644 index 0000000..dcb3964 --- /dev/null +++ b/academiesContracts/Dfe.Academies.Contracts/V4/PagedDataResponse.cs @@ -0,0 +1,26 @@ +namespace Dfe.Academies.Contracts.V4; +using System.Collections.Generic; + +public class PagedDataResponse where TResponse : class +{ + + public IEnumerable Data { get; set; } + public PagingResponse Paging { get; set; } + + public PagedDataResponse() => Data = new List(); + + public PagedDataResponse(IEnumerable data, PagingResponse pagingResponse) + { + Data = data; + Paging = pagingResponse; + } + + public PagedDataResponse(TResponse data) => Data = new List { data }; + +} +public class PagingResponse +{ + public int Page { get; set; } + public int RecordCount { get; set; } + public string NextPageUrl { get; set; } +} diff --git a/academiesContracts/Dfe.Academies.Contracts/Trusts/TrustDto.cs b/academiesContracts/Dfe.Academies.Contracts/V4/Trusts/TrustDto.cs similarity index 100% rename from academiesContracts/Dfe.Academies.Contracts/Trusts/TrustDto.cs rename to academiesContracts/Dfe.Academies.Contracts/V4/Trusts/TrustDto.cs