Skip to content

Commit

Permalink
FAT2-295 - Add outer api response types
Browse files Browse the repository at this point in the history
  • Loading branch information
dashton82 committed Dec 24, 2020
1 parent b8a63b5 commit 2b08452
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
using System.Collections.Generic;
using Newtonsoft.Json;

namespace SFA.DAS.EmployerFinance.UnitTests.Infrastructure.OuterApiResponses
{
public class GetFrameworksResponse
{
[JsonProperty("frameworks")]
public List<FrameworkResponseItem> Frameworks { get; set; }
}

public class FrameworkResponseItem
{
[JsonProperty("id")]
public string Id { get; set; }

[JsonProperty("frameworkName")]
public string FrameworkName { get; set; }

[JsonProperty("pathwayName")]
public string PathwayName { get; set; }

[JsonProperty("title")]
public string Title { get; set; }

[JsonProperty("level")]
public long Level { get; set; }

[JsonProperty("frameworkCode")]
public long FrameworkCode { get; set; }

[JsonProperty("progType")]
public long ProgType { get; set; }

[JsonProperty("pathwayCode")]
public long PathwayCode { get; set; }

[JsonProperty("maxFunding")]
public long MaxFunding { get; set; }

[JsonProperty("duration")]
public long Duration { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System.Collections.Generic;
using Newtonsoft.Json;

namespace SFA.DAS.EmployerFinance.UnitTests.Infrastructure.OuterApiResponses
{
public class GetProvidersResponse
{
[JsonProperty("providers")]
public List<ProviderResponseItem> Providers { get; set; }
}

public class ProviderResponseItem
{
[JsonProperty("ukprn")]
public long Ukprn { get; set; }

[JsonProperty("name")]
public string Name { get; set; }

[JsonProperty("contactUrl")]
public string ContactUrl { get; set; }

[JsonProperty("email")]
public string Email { get; set; }

[JsonProperty("phone")]
public string Phone { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System.Collections.Generic;
using Newtonsoft.Json;

namespace SFA.DAS.EmployerFinance.UnitTests.Infrastructure.OuterApiResponses
{
public class GetStandardsResponse
{
[JsonProperty("standards")]
public List<StandardResponseItem> Standards { get; set; }
}

public class StandardResponseItem
{
[JsonProperty("id")]
public long Id { get; set; }

[JsonProperty("level")]
public long Level { get; set; }

[JsonProperty("title")]
public string Title { get; set; }

[JsonProperty("duration")]
public long Duration { get; set; }

[JsonProperty("maxFunding")]
public long MaxFunding { get; set; }
}
}

0 comments on commit 2b08452

Please sign in to comment.