Esempio n. 1
0
        /// <summary>
        /// Returns true if Status instances are equal
        /// </summary>
        /// <param name="other">Instance of Status to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Status other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Code == other.Code ||
                     Code != null &&
                     Code.Equals(other.Code)
                     ) &&
                 (
                     Explanation == other.Explanation ||
                     Explanation != null &&
                     Explanation.Equals(other.Explanation)
                 ) &&
                 (
                     DetectionTime == other.DetectionTime ||
                     DetectionTime != null &&
                     DetectionTime.Equals(other.DetectionTime)
                 ) &&
                 (
                     ExpectedResolutionTime == other.ExpectedResolutionTime ||
                     ExpectedResolutionTime != null &&
                     ExpectedResolutionTime.Equals(other.ExpectedResolutionTime)
                 ) &&
                 (
                     UpdateTime == other.UpdateTime ||
                     UpdateTime != null &&
                     UpdateTime.Equals(other.UpdateTime)
                 ));
        }