Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
namespace fix and moved address out of trust class
Browse files Browse the repository at this point in the history
  • Loading branch information
paullocknimble committed Nov 7, 2023
1 parent 7125870 commit 96f8092
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 20 deletions.
22 changes: 22 additions & 0 deletions academiesContracts/Dfe.Academies.Contracts/V4/AddressDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
namespace Dfe.Academies.Contracts.V4;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

[Serializable]
public class AddressDto
{
public string Street { get; set; }

public string Town { get; set; }

public string County { get; set; }

public string Postcode { get; set; }

public string Locality { get; set; }

public string Additional { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
namespace Dfe.Academies.Contracts.Establishments;

using Dfe.Academies.Contracts.Trusts;
namespace Dfe.Academies.Contracts.V4.Establishments;

[Serializable]
public class EstablishmentDto
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace Dfe.Academies.Contracts.V4;
using System.Collections.Generic;

[Serializable]
public class PagedDataResponse<TResponse> where TResponse : class
{

Expand All @@ -18,6 +19,8 @@ public PagedDataResponse(IEnumerable<TResponse> data, PagingResponse pagingRespo
public PagedDataResponse(TResponse data) => Data = new List<TResponse> { data };

}

[Serializable]
public class PagingResponse
{
public int Page { get; set; }
Expand Down
18 changes: 1 addition & 17 deletions academiesContracts/Dfe.Academies.Contracts/V4/Trusts/TrustDto.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Dfe.Academies.Contracts.Trusts;
namespace Dfe.Academies.Contracts.V4.Trusts;

[Serializable]
public class TrustDto
Expand All @@ -14,19 +14,3 @@ public class TrustDto
public AddressDto Address { get; set; }

}

[Serializable]
public class AddressDto
{
public string Street { get; set; }

public string Town { get; set; }

public string County { get; set; }

public string Postcode { get; set; }

public string Locality { get; set; }

public string Additional { get; set; }
}

0 comments on commit 96f8092

Please sign in to comment.