Esempio n. 1
0
        /// <summary>
        /// Returns true if the content (everything excluding <see cref="AircraftDetailId"/>, <see cref="CreatedUtc"/> and <see cref="UpdatedUtc"/>)
        /// of the other object passed in is the same as this object's content.
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public bool ContentEquals(AircraftOnlineLookupDetail other)
        {
            var result = Object.ReferenceEquals(this, other);

            if (!result)
            {
                result = other != null &&
                         Icao == other.Icao &&
                         Registration == other.Registration &&
                         Country == other.Country &&
                         Manufacturer == other.Manufacturer &&
                         Model == other.Model &&
                         ModelIcao == other.ModelIcao &&
                         Operator == other.Operator &&
                         OperatorIcao == other.OperatorIcao &&
                         Serial == other.Serial &&
                         YearBuilt == other.YearBuilt;
            }

            return(result);
        }
 /// <summary>
 /// Creates a new object.
 /// </summary>
 /// <param name="fetchedAircraft"></param>
 public AircraftOnlineLookupEventArgs(AircraftOnlineLookupDetail fetchedAircraft)
 {
     _AircraftDetails.Add(fetchedAircraft);
 }