diff --git a/src/fr24sdk/models/__init__.py b/src/fr24sdk/models/__init__.py index 9130935..cf0def1 100644 --- a/src/fr24sdk/models/__init__.py +++ b/src/fr24sdk/models/__init__.py @@ -3,6 +3,7 @@ # SPDX-License-Identifier: MIT """Exposes data models for the Flightradar24 SDK.""" +from .flight_category import FlightCategory from .airline import AirlineLight from .airport import AirportFull, AirportLight, Country, Timezone from .flight import ( @@ -27,6 +28,7 @@ __all__ = [ "AirlineLight", + "FlightCategory", "AirportFull", "AirportLight", "Country", diff --git a/src/fr24sdk/models/flight_category.py b/src/fr24sdk/models/flight_category.py new file mode 100644 index 0000000..b859cac --- /dev/null +++ b/src/fr24sdk/models/flight_category.py @@ -0,0 +1,27 @@ +# SPDX-FileCopyrightText: Copyright Flightradar24 +# +# SPDX-License-Identifier: MIT +"""Flight category enumeration for the Flightradar24 SDK.""" + +from enum import Enum + + +class FlightCategory(Enum): + """Enumeration of FlightRadar24 flight categories. + + Maps character literals used by the FR24 API to identify different + types of aircraft and flight operations. + """ + + PASSENGER = "P" + CARGO = "C" + MILITARY_AND_GOVERNMENT = "M" + BUSINESS_JETS = "J" + GENERAL_AVIATION = "T" + HELICOPTERS = "H" + LIGHTER_THAN_AIR = "B" + GLIDERS = "G" + DRONES = "D" + GROUND_VEHICLES = "V" + OTHER = "O" + NON_CATEGORIZED = "N"