Пример #1
0
        public void SetFlightStatus(FlightStatus flightStatus)
        {
            if (string.IsNullOrEmpty(flightStatus.ToString()))
            {
                throw new BeComfyDomainException($"{nameof(flightStatus)} cannot be null");
            }

            FlightStatus = flightStatus;
            SetUpdateDate();
        }
Пример #2
0
 public static string GetDescription(this FlightStatus status)
 {
     return(status == FlightStatus.InAir ? "In Air" : status.ToString());
 }