From e43397dd09f4ccc40064a441fa0da8036aa8bb6a Mon Sep 17 00:00:00 2001 From: PicelBoi Date: Mon, 19 Jan 2026 19:38:56 -0500 Subject: [PATCH] add AirportDelays schema --- MistWX-i2Me/Schema/twc/AirportDelays.cs | 47 +++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 MistWX-i2Me/Schema/twc/AirportDelays.cs diff --git a/MistWX-i2Me/Schema/twc/AirportDelays.cs b/MistWX-i2Me/Schema/twc/AirportDelays.cs new file mode 100644 index 0000000..9dbdb1d --- /dev/null +++ b/MistWX-i2Me/Schema/twc/AirportDelays.cs @@ -0,0 +1,47 @@ +using System.Xml.Serialization; + +namespace MistWX_i2Me.Schema.twc; + +[XmlRoot(ElementName="Arrival")] +public class Arrival +{ + [XmlAttribute(AttributeName="cancellations")] + public int? Cancellations { get; set; } + + [XmlAttribute(AttributeName="percentage_cancelled")] + public int? PercentCancelled { get; set; } + + [XmlAttribute(AttributeName="total")] + public int? Total { get; set; } +} + +[XmlRoot(ElementName="AirportDelays")] +public class AirportDelays +{ + [XmlAttribute(AttributeName="key")] + public string? Key { get; set; } + + [XmlAttribute(AttributeName="icao_code")] + public string? ICAOCode { get; set; } + + [XmlAttribute(AttributeName="iata_code")] + public string? IATACode { get; set; } + + [XmlAttribute(AttributeName="faa_code")] + public string? FAACode { get; set; } + + [XmlAttribute(AttributeName="airport_name")] + public string? AirportName { get; set; } + + [XmlAttribute(AttributeName="local_airport_name")] + public string? LocalAirportName { get; set; } + + [XmlAttribute(AttributeName="arrival")] + public Arrival? Arrival { get; set; } + + [XmlAttribute(AttributeName="departure")] + public Arrival? Departure { get; set; } + + [XmlAttribute(AttributeName="process_time_gmt")] + public int? ProcessTimeGmt { get; set; } +} \ No newline at end of file