first approach data structure

This commit is contained in:
Joe Küng
2024-11-06 10:29:29 +01:00
parent 728718ffe5
commit 8741bcd8fe
3 changed files with 57 additions and 46 deletions

View File

@@ -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;
}
}

View 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;
}
}

View 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; } = "";
}