/// <summary> /// Returns true if CurrentPlayerIDs instances are equal /// </summary> /// <param name="other">Instance of CurrentPlayerIDs to be compared</param> /// <returns>Boolean</returns> public bool Equals(CurrentPlayerIDs other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Legacy == other.Legacy || Legacy != null && Legacy.Equals(other.Legacy) ) && ( Demo == other.Demo || Demo != null && Demo.Equals(other.Demo) )); }
/// <summary> /// Returns true if PlayerProfile instances are equal /// </summary> /// <param name="other">Instance of PlayerProfile to be compared</param> /// <returns>Boolean</returns> public bool Equals(PlayerProfile other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Legacy == other.Legacy || Legacy != null && Legacy.Equals(other.Legacy) ) && ( Properties == other.Properties || Properties != null && Properties.SequenceEqual(other.Properties) )); }