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

            return
                ((
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                     ) &&
                 (
                     Activity == other.Activity ||
                     Activity != null &&
                     Activity.Equals(other.Activity)
                 ) &&
                 (
                     Athlete == other.Athlete ||
                     Athlete != null &&
                     Athlete.Equals(other.Athlete)
                 ) &&
                 (
                     MovingTime == other.MovingTime ||
                     MovingTime != null &&
                     MovingTime.Equals(other.MovingTime)
                 ) &&
                 (
                     StartIndex == other.StartIndex ||
                     StartIndex != null &&
                     StartIndex.Equals(other.StartIndex)
                 ) &&
                 (
                     EndIndex == other.EndIndex ||
                     EndIndex != null &&
                     EndIndex.Equals(other.EndIndex)
                 ) &&
                 (
                     AverageCadence == other.AverageCadence ||
                     AverageCadence != null &&
                     AverageCadence.Equals(other.AverageCadence)
                 ) &&
                 (
                     AverageWatts == other.AverageWatts ||
                     AverageWatts != null &&
                     AverageWatts.Equals(other.AverageWatts)
                 ) &&
                 (
                     DeviceWatts == other.DeviceWatts ||
                     DeviceWatts != null &&
                     DeviceWatts.Equals(other.DeviceWatts)
                 ) &&
                 (
                     AverageHeartrate == other.AverageHeartrate ||
                     AverageHeartrate != null &&
                     AverageHeartrate.Equals(other.AverageHeartrate)
                 ) &&
                 (
                     MaxHeartrate == other.MaxHeartrate ||
                     MaxHeartrate != null &&
                     MaxHeartrate.Equals(other.MaxHeartrate)
                 ) &&
                 (
                     Segment == other.Segment ||
                     Segment != null &&
                     Segment.Equals(other.Segment)
                 ) &&
                 (
                     KomRank == other.KomRank ||
                     KomRank != null &&
                     KomRank.Equals(other.KomRank)
                 ) &&
                 (
                     PrRank == other.PrRank ||
                     PrRank != null &&
                     PrRank.Equals(other.PrRank)
                 ) &&
                 (
                     Hidden == other.Hidden ||
                     Hidden != null &&
                     Hidden.Equals(other.Hidden)
                 ));
        }