/// <summary> /// Returns true if PdfLoadDocumentResponse instances are equal /// </summary> /// <param name="input">Instance of PdfLoadDocumentResponse to be compared</param> /// <returns>Boolean</returns> public bool Equals(PdfLoadDocumentResponse input) { if (input == null) { return(false); } return (( Error == input.Error || (Error != null && Error.Equals(input.Error)) ) && ( RemainingTokens == input.RemainingTokens || RemainingTokens.Equals(input.RemainingTokens) ) && ( FileId == input.FileId || (FileId != null && FileId.Equals(input.FileId)) ) && ( PageCount == input.PageCount || PageCount.Equals(input.PageCount) ) && ( Encryption == input.Encryption || Encryption.Equals(input.Encryption) ) && ( PasswordIsRequired == input.PasswordIsRequired || PasswordIsRequired.Equals(input.PasswordIsRequired) ) && ( ThumbnailData == input.ThumbnailData || (ThumbnailData != null && ThumbnailData.Equals(input.ThumbnailData)) )); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Error != null) { hashCode = hashCode * 59 + Error.GetHashCode(); } hashCode = hashCode * 59 + RemainingTokens.GetHashCode(); if (FileId != null) { hashCode = hashCode * 59 + FileId.GetHashCode(); } hashCode = hashCode * 59 + PageCount.GetHashCode(); hashCode = hashCode * 59 + Encryption.GetHashCode(); hashCode = hashCode * 59 + PasswordIsRequired.GetHashCode(); if (ThumbnailData != null) { hashCode = hashCode * 59 + ThumbnailData.GetHashCode(); } return(hashCode); } }