Adapted ChartModel to accept an ICAO Code

This commit is contained in:
2022-02-11 19:54:11 +00:00
parent 0c68d05af1
commit d8a40e64ef
5 changed files with 15 additions and 10 deletions

View File

@ -18,6 +18,7 @@ namespace EFB.Models
{
public class ChartModel
{
public string ICAO { get; set; }
public Chart[] General { get; set; }
public Chart[] TextualData { get; set; }
public Chart[] GroundLayout { get; set; }
@ -31,8 +32,9 @@ namespace EFB.Models
public ChartModel(){
//Empty constructor for JSON Serialisation Purposes
}
public ChartModel(ChartList response)
public ChartModel(string ICAO, ChartList response)
{
this.ICAO = ICAO;
General = FillChart(response.General);
TextualData = FillChart(response.TextualData);
GroundLayout = FillChart(response.GroundLayout);

View File

@ -27,7 +27,7 @@ namespace EFB.Models
//Contains the Departure and Arrival Charts for the user's route
public ChartModel DepartureCharts { get; set; }
public ChartModel ArrivalCharts { get; set; }
public ChartModel CurrentChart { get; set; }
public ChartModel CurrentCharts { get; set; }
//Contains the most recently stored position of the user in the simulator
public object SimPosition { get; set; } = null;