first approach data structure
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
namespace DefaultNamespace
|
||||
{
|
||||
public class Flight
|
||||
{
|
||||
private string ident = "";
|
||||
private FlightInfo flightInfo;
|
||||
}
|
||||
|
||||
public class FlightInfo
|
||||
{
|
||||
public string Date { get; set; } = "";
|
||||
public string Reg { get; set; } = "";
|
||||
public string Type { get; set; } = "";
|
||||
public string From { get; set; } = "";
|
||||
public string To { get; set; } = "";
|
||||
public string Altn1 { get; set; } = "";
|
||||
public string FltNr { get; set; } = "";
|
||||
public string ATC { get; set; } = "";
|
||||
}
|
||||
|
||||
public class Times
|
||||
{
|
||||
public string STD { get; set; } = "";
|
||||
public string STA { get; set; } = "";
|
||||
}
|
||||
|
||||
public class Loadmass
|
||||
{
|
||||
public string ZFM { get; set; } = "";
|
||||
}
|
||||
|
||||
public class Fuel
|
||||
{
|
||||
public string LIMC { get; set; } = "";
|
||||
public string LIML { get; set; } = "";
|
||||
public string MIN { get; set; } = "";
|
||||
|
||||
}
|
||||
|
||||
public class Corrections
|
||||
{
|
||||
public double gain-loss { get; set; } = 0;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
47
capzlog-ExtractDataFromPDF/models/Flight.cs
Normal file
47
capzlog-ExtractDataFromPDF/models/Flight.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
namespace capzlog_ExtractDataFromPDF.models
|
||||
{
|
||||
public class Flight
|
||||
{
|
||||
public string Identifier { get; private set; } = "";
|
||||
public FlightInfo Info { get; set; } = new FlightInfo();
|
||||
public Times Schedule { get; set; } = new Times();
|
||||
public LoadMass MassLoad { get; set; } = new LoadMass();
|
||||
public Fuel FuelData { get; set; } = new Fuel();
|
||||
public Corrections Correction { get; set; } = new Corrections();
|
||||
}
|
||||
|
||||
public class FlightInfo
|
||||
{
|
||||
public string Date { get; set; } = "";
|
||||
public string Registration { get; set; } = "";
|
||||
public string AircraftType { get; set; } = "";
|
||||
public string Departure { get; set; } = "";
|
||||
public string Destination { get; set; } = "";
|
||||
public string Alternate1 { get; set; } = "";
|
||||
public string FlightNumber { get; set; } = "";
|
||||
public string ATCCode { get; set; } = "";
|
||||
}
|
||||
|
||||
public class Times
|
||||
{
|
||||
public string ScheduledDepartureTime { get; set; } = "";
|
||||
public string ScheduledArrivalTime { get; set; } = "";
|
||||
}
|
||||
|
||||
public class LoadMass
|
||||
{
|
||||
public string ZeroFuelMass { get; set; } = "";
|
||||
}
|
||||
|
||||
public class Fuel
|
||||
{
|
||||
public string Limc { get; set; } = "";
|
||||
public string Liml { get; set; } = "";
|
||||
public string MinimumRequired { get; set; } = "";
|
||||
}
|
||||
|
||||
public class Corrections
|
||||
{
|
||||
public double GainOrLoss { get; set; } = 0.0;
|
||||
}
|
||||
}
|
||||
10
capzlog-ExtractDataFromPDF/models/crew.cs
Normal file
10
capzlog-ExtractDataFromPDF/models/crew.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace capzlog_ExtractDataFromPDF.models;
|
||||
|
||||
public class Crew
|
||||
{
|
||||
public string Function { get; set; } = "";
|
||||
public string Lc { get; set; } = "";
|
||||
public string Name { get; set; } = "";
|
||||
public string FunctionExtended { get; set; } = "";
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user