public override bool Equals(object obj) { if (!(obj is StartedAuthentication)) { return(false); } if (this == obj) { return(true); } if (GetType() != obj.GetType()) { return(false); } StartedAuthentication other = (StartedAuthentication)obj; if (AppId == null) { if (other.AppId != null) { return(false); } } else if (!AppId.Equals(other.AppId)) { return(false); } if (Challenge == null) { if (other.Challenge != null) { return(false); } } else if (!Challenge.Equals(other.Challenge)) { return(false); } if (KeyHandle == null) { if (other.KeyHandle != null) { return(false); } } else if (!KeyHandle.Equals(other.KeyHandle)) { return(false); } if (Version == null) { if (other.Version != null) { return(false); } } else if (!Version.Equals(other.Version)) { return(false); } return(true); }