public void SetFlightStatus(FlightStatus flightStatus) { if (string.IsNullOrEmpty(flightStatus.ToString())) { throw new BeComfyDomainException($"{nameof(flightStatus)} cannot be null"); } FlightStatus = flightStatus; SetUpdateDate(); }
public static string GetDescription(this FlightStatus status) { return(status == FlightStatus.InAir ? "In Air" : status.ToString()); }