/// <summary> /// Returns true if SummaryAthlete instances are equal /// </summary> /// <param name="other">Instance of SummaryAthlete to be compared</param> /// <returns>Boolean</returns> public bool Equals(SummaryAthlete other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ResourceState == other.ResourceState || ResourceState != null && ResourceState.Equals(other.ResourceState) ) && ( Firstname == other.Firstname || Firstname != null && Firstname.Equals(other.Firstname) ) && ( Lastname == other.Lastname || Lastname != null && Lastname.Equals(other.Lastname) ) && ( ProfileMedium == other.ProfileMedium || ProfileMedium != null && ProfileMedium.Equals(other.ProfileMedium) ) && ( Profile == other.Profile || Profile != null && Profile.Equals(other.Profile) ) && ( City == other.City || City != null && City.Equals(other.City) ) && ( State == other.State || State != null && State.Equals(other.State) ) && ( Country == other.Country || Country != null && Country.Equals(other.Country) ) && ( Sex == other.Sex || Sex != null && Sex.Equals(other.Sex) ) && ( Premium == other.Premium || Premium != null && Premium.Equals(other.Premium) ) && ( Summit == other.Summit || Summit != null && Summit.Equals(other.Summit) ) && ( CreatedAt == other.CreatedAt || CreatedAt != null && CreatedAt.Equals(other.CreatedAt) ) && ( UpdatedAt == other.UpdatedAt || UpdatedAt != null && UpdatedAt.Equals(other.UpdatedAt) )); }