/// <summary> /// Returns true if ActivityTotal instances are equal /// </summary> /// <param name="other">Instance of ActivityTotal to be compared</param> /// <returns>Boolean</returns> public bool Equals(ActivityTotal other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Count == other.Count || Count != null && Count.Equals(other.Count) ) && ( Distance == other.Distance || Distance != null && Distance.Equals(other.Distance) ) && ( MovingTime == other.MovingTime || MovingTime != null && MovingTime.Equals(other.MovingTime) ) && ( ElapsedTime == other.ElapsedTime || ElapsedTime != null && ElapsedTime.Equals(other.ElapsedTime) ) && ( ElevationGain == other.ElevationGain || ElevationGain != null && ElevationGain.Equals(other.ElevationGain) ) && ( AchievementCount == other.AchievementCount || AchievementCount != null && AchievementCount.Equals(other.AchievementCount) )); }
/// <summary> /// Returns true if Route instances are equal /// </summary> /// <param name="other">Instance of Route to be compared</param> /// <returns>Boolean</returns> public bool Equals(Route other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Athlete == other.Athlete || Athlete != null && Athlete.Equals(other.Athlete) ) && ( Description == other.Description || Description != null && Description.Equals(other.Description) ) && ( Distance == other.Distance || Distance != null && Distance.Equals(other.Distance) ) && ( ElevationGain == other.ElevationGain || ElevationGain != null && ElevationGain.Equals(other.ElevationGain) ) && ( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( IdStr == other.IdStr || IdStr != null && IdStr.Equals(other.IdStr) ) && ( Map == other.Map || Map != null && Map.Equals(other.Map) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( _Private == other._Private || _Private != null && _Private.Equals(other._Private) ) && ( Starred == other.Starred || Starred != null && Starred.Equals(other.Starred) ) && ( Timestamp == other.Timestamp || Timestamp != null && Timestamp.Equals(other.Timestamp) ) && ( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( SubType == other.SubType || SubType != null && SubType.Equals(other.SubType) ) && ( CreatedAt == other.CreatedAt || CreatedAt != null && CreatedAt.Equals(other.CreatedAt) ) && ( UpdatedAt == other.UpdatedAt || UpdatedAt != null && UpdatedAt.Equals(other.UpdatedAt) ) && ( EstimatedMovingTime == other.EstimatedMovingTime || EstimatedMovingTime != null && EstimatedMovingTime.Equals(other.EstimatedMovingTime) ) && ( Segments == other.Segments || Segments != null && Segments.SequenceEqual(other.Segments) )); }