Adapted ChartModel to accept an ICAO Code
This commit is contained in:
@ -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);
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user