/// <summary> /// Returns true if PdfProtectParameters instances are equal /// </summary> /// <param name="input">Instance of PdfProtectParameters to be compared</param> /// <returns>Boolean</returns> public bool Equals(PdfProtectParameters input) { if (input == null) { return(false); } return (( FileId == input.FileId || (FileId != null && FileId.Equals(input.FileId)) ) && ( OwnerPassword == input.OwnerPassword || (OwnerPassword != null && OwnerPassword.Equals(input.OwnerPassword)) ) && ( UserPassword == input.UserPassword || (UserPassword != null && UserPassword.Equals(input.UserPassword)) ) && ( Encryption == input.Encryption || Encryption.Equals(input.Encryption) ) && ( CanPrint == input.CanPrint || CanPrint.Equals(input.CanPrint) ) && ( CanCopy == input.CanCopy || CanCopy.Equals(input.CanCopy) ) && ( CanModify == input.CanModify || CanModify.Equals(input.CanModify) ) && ( CanAddNotes == input.CanAddNotes || CanAddNotes.Equals(input.CanAddNotes) ) && ( CanFillFields == input.CanFillFields || CanFillFields.Equals(input.CanFillFields) ) && ( CanCopyAccess == input.CanCopyAccess || CanCopyAccess.Equals(input.CanCopyAccess) ) && ( CanAssemble == input.CanAssemble || CanAssemble.Equals(input.CanAssemble) ) && ( CanPrintFull == input.CanPrintFull || CanPrintFull.Equals(input.CanPrintFull) )); }
/// <summary> /// Returns true if PdfGetInfoResponse instances are equal /// </summary> /// <param name="input">Instance of PdfGetInfoResponse to be compared</param> /// <returns>Boolean</returns> public bool Equals(PdfGetInfoResponse input) { if (input == null) { return(false); } return (( Error == input.Error || (Error != null && Error.Equals(input.Error)) ) && ( RemainingTokens == input.RemainingTokens || RemainingTokens.Equals(input.RemainingTokens) ) && ( PageCount == input.PageCount || PageCount.Equals(input.PageCount) ) && ( Version == input.Version || (Version != null && Version.Equals(input.Version)) ) && ( Author == input.Author || (Author != null && Author.Equals(input.Author)) ) && ( Title == input.Title || (Title != null && Title.Equals(input.Title)) ) && ( Subject == input.Subject || (Subject != null && Subject.Equals(input.Subject)) ) && ( Producer == input.Producer || (Producer != null && Producer.Equals(input.Producer)) ) && ( Metadata == input.Metadata || (Metadata != null && Metadata.Equals(input.Metadata)) ) && ( Keywords == input.Keywords || (Keywords != null && Keywords.Equals(input.Keywords)) ) && ( HasUserPassword == input.HasUserPassword || HasUserPassword.Equals(input.HasUserPassword) ) && ( HasOwnerPassword == input.HasOwnerPassword || HasOwnerPassword.Equals(input.HasOwnerPassword) ) && ( Encryption == input.Encryption || Encryption.Equals(input.Encryption) ) && ( CanPrint == input.CanPrint || CanPrint.Equals(input.CanPrint) ) && ( CanCopy == input.CanCopy || CanCopy.Equals(input.CanCopy) ) && ( CanModify == input.CanModify || CanModify.Equals(input.CanModify) ) && ( CanAddNotes == input.CanAddNotes || CanAddNotes.Equals(input.CanAddNotes) ) && ( CanFillFields == input.CanFillFields || CanFillFields.Equals(input.CanFillFields) ) && ( CanCopyAccess == input.CanCopyAccess || CanCopyAccess.Equals(input.CanCopyAccess) ) && ( CanAssemble == input.CanAssemble || CanAssemble.Equals(input.CanAssemble) ) && ( CanPrintFull == input.CanPrintFull || CanPrintFull.Equals(input.CanPrintFull) )); }