/// <summary> /// Returns true if ActivityZone instances are equal /// </summary> /// <param name="other">Instance of ActivityZone to be compared</param> /// <returns>Boolean</returns> public bool Equals(ActivityZone other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Score == other.Score || Score != null && Score.Equals(other.Score) ) && ( DistributionBuckets == other.DistributionBuckets || DistributionBuckets != null && DistributionBuckets.Equals(other.DistributionBuckets) ) && ( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( SensorBased == other.SensorBased || SensorBased != null && SensorBased.Equals(other.SensorBased) ) && ( Points == other.Points || Points != null && Points.Equals(other.Points) ) && ( CustomZones == other.CustomZones || CustomZones != null && CustomZones.Equals(other.CustomZones) ) && ( Max == other.Max || Max != null && Max.Equals(other.Max) )); }
/// <summary> /// Returns true if HeartRateZoneRanges instances are equal /// </summary> /// <param name="other">Instance of HeartRateZoneRanges to be compared</param> /// <returns>Boolean</returns> public bool Equals(HeartRateZoneRanges other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( CustomZones == other.CustomZones || CustomZones != null && CustomZones.Equals(other.CustomZones) ) && ( Zones == other.Zones || Zones != null && Zones.Equals(other.Zones) )); }