using System.Collections.Generic;

namespace SepehrFlightApiSampleClient
{
    public class RouteService
    {
        public static bool IsInternationalRoute(string originIataCode, string destinationIataCode)
        {
            var dakheliAirports = new Dictionary<string, bool>
            {
                {"ABD",true},
                {"AWZ",true},
                {"AEU",true},
                {"AJK",true},
                {"ADU",true},
                {"YEH",true},
                {"PGU",true},
                {"IAQ",true},
                {"BXR",true},
                {"BND",true},
                {"HDR",true},
                {"BDH",true},
                {"XBJ",true},
                {"BJB",true},
                {"BUZ",true},
                {"ZBR",true},
                {"DEF",true},
                {"FAZ",true},
                {"GCH",true},
                {"GBT",true},
                {"HDM",true},
                {"IIL",true},
                {"IHR",true},
                {"IFN",true},
                {"JAR",true},
                {"JSK",true},
                {"JYR",true},
                {"KLM",true},
                {"KNR",true},
                {"PYK",true},
                {"KKS",true},
                {"KER",true},
                {"KSH",true},
                {"KHA",true},
                {"KHK",true},
                {"KHD",true},
                {"KHY",true},
                {"KIH",true},
                {"LFM",true},
                {"LRR",true},
                {"LVP",true},
                {"MRX",true},
                {"IMQ",true},
                {"ACP",true},
                {"MHD",true},
                {"NSH",true},
                {"PFQ",true},
                {"GZW",true},
                {"GSM",true},
                {"RJN",true},
                {"RZR",true},
                {"RAS",true},
                {"AFZ",true},
                {"SDG",true},
                {"CKT",true},
                {"SRY",true},
                {"SNX",true},
                {"CQD",true},
                {"RUD",true},
                {"SYZ",true},
                {"SYJ",true},
                {"SXI",true},
                {"TCX",true},
                {"TBZ",true},
                {"IKA",true},
                {"THR",true},
                {"OMH",true},
                {"YES",true},
                {"AZD",true},
                {"ACZ",true},
                {"ZAH",true},
                {"JWN",true},
                {"AKW",true},
                {"IFH",true},
                {"OMI",true},
                {"BSM",true},
            };

            if (
                !dakheliAirports.TryGetValue(originIataCode, out _)
                ||
                !dakheliAirports.TryGetValue(destinationIataCode, out _)
            )
            {
                return true;
            }

            return false;
        }
    }
}
