/// <summary>
        /// Returns true if ReduceWarningInfo instances are equal
        /// </summary>
        /// <param name="input">Instance of ReduceWarningInfo to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ReduceWarningInfo input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     WarningCode == input.WarningCode ||
                     WarningCode.Equals(input.WarningCode)
                     ) &&
                 (
                     PageNumber == input.PageNumber ||
                     PageNumber.Equals(input.PageNumber)
                 ) &&
                 (
                     PageImageNumber == input.PageImageNumber ||
                     PageImageNumber.Equals(input.PageImageNumber)
                 ) &&
                 (
                     ExtWarningMessage == input.ExtWarningMessage ||
                     (ExtWarningMessage != null &&
                      ExtWarningMessage.Equals(input.ExtWarningMessage))
                 ));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Returns true if ImageRegion instances are equal
        /// </summary>
        /// <param name="input">Instance of ImageRegion to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ImageRegion input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     PageNumber == input.PageNumber ||
                     PageNumber.Equals(input.PageNumber)
                     ) &&
                 (
                     Left == input.Left ||
                     Left.Equals(input.Left)
                 ) &&
                 (
                     Top == input.Top ||
                     Top.Equals(input.Top)
                 ) &&
                 (
                     Width == input.Width ||
                     Width.Equals(input.Width)
                 ) &&
                 (
                     Height == input.Height ||
                     Height.Equals(input.Height)
                 ));
        }
        /// <summary>
        /// Returns true if PdfInsertNewPageParameters instances are equal
        /// </summary>
        /// <param name="input">Instance of PdfInsertNewPageParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PdfInsertNewPageParameters input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     FileId == input.FileId ||
                     (FileId != null &&
                      FileId.Equals(input.FileId))
                     ) &&
                 (
                     PageNumber == input.PageNumber ||
                     PageNumber.Equals(input.PageNumber)
                 ) &&
                 (
                     PageCount == input.PageCount ||
                     PageCount.Equals(input.PageCount)
                 ) &&
                 (
                     Width == input.Width ||
                     Width.Equals(input.Width)
                 ) &&
                 (
                     Height == input.Height ||
                     Height.Equals(input.Height)
                 ));
        }
        public override bool Equals(object obj)
        {
            if (ReferenceEquals(this, obj))
            {
                return(true);
            }

            if (obj is null || GetType() != obj.GetType())
            {
                return(false);
            }

            var other = (PaginationExpression)obj;

            return(PageNumber.Equals(other.PageNumber) && Equals(PageSize, other.PageSize));
        }
        /// <summary>
        /// Returns true if ColorDetectionResult instances are equal
        /// </summary>
        /// <param name="input">Instance of ColorDetectionResult to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ColorDetectionResult input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     PageNumber == input.PageNumber ||
                     PageNumber.Equals(input.PageNumber)
                     ) &&
                 (
                     OutputIntent == input.OutputIntent ||
                     OutputIntent.Equals(input.OutputIntent)
                 ));
        }
        /// <summary>
        /// Returns true if PageOrientationInfo instances are equal
        /// </summary>
        /// <param name="input">Instance of PageOrientationInfo to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PageOrientationInfo input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     PageNumber == input.PageNumber ||
                     PageNumber.Equals(input.PageNumber)
                     ) &&
                 (
                     RotationAngle == input.RotationAngle ||
                     RotationAngle.Equals(input.RotationAngle)
                 ));
        }
Exemplo n.º 7
0
        /// <summary>
        /// Returns true if PageText instances are equal
        /// </summary>
        /// <param name="input">Instance of PageText to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PageText input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     PageNumber == input.PageNumber ||
                     PageNumber.Equals(input.PageNumber)
                     ) &&
                 (
                     ExtractedText == input.ExtractedText ||
                     (ExtractedText != null &&
                      ExtractedText.Equals(input.ExtractedText))
                 ));
        }
Exemplo n.º 8
0
        /// <summary>
        /// Returns true if ReduceErrorInfo instances are equal
        /// </summary>
        /// <param name="input">Instance of ReduceErrorInfo to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ReduceErrorInfo input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ErrorCode == input.ErrorCode ||
                     ErrorCode.Equals(input.ErrorCode)
                     ) &&
                 (
                     PageNumber == input.PageNumber ||
                     PageNumber.Equals(input.PageNumber)
                 ) &&
                 (
                     ExtErrorMessage == input.ExtErrorMessage ||
                     (ExtErrorMessage != null &&
                      ExtErrorMessage.Equals(input.ExtErrorMessage))
                 ));
        }
Exemplo n.º 9
0
        /// <summary>
        /// Returns true if PageImage instances are equal
        /// </summary>
        /// <param name="input">Instance of PageImage to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PageImage input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     PageNumber == input.PageNumber ||
                     PageNumber.Equals(input.PageNumber)
                     ) &&
                 (
                     ImageData == input.ImageData ||
                     (ImageData != null &&
                      ImageData.Equals(input.ImageData))
                 ) &&
                 (
                     FileName == input.FileName ||
                     (FileName != null &&
                      FileName.Equals(input.FileName))
                 ));
        }
Exemplo n.º 10
0
        /// <summary>
        /// Returns true if MICRResult instances are equal
        /// </summary>
        /// <param name="input">Instance of MICRResult to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(MICRResult input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     PageNumber == input.PageNumber ||
                     PageNumber.Equals(input.PageNumber)
                     ) &&
                 (
                     Data == input.Data ||
                     (Data != null &&
                      Data.Equals(input.Data))
                 ) &&
                 (
                     DetectedSymbols == input.DetectedSymbols ||
                     DetectedSymbols != null &&
                     input.DetectedSymbols != null &&
                     DetectedSymbols.SequenceEqual(input.DetectedSymbols)
                 ));
        }
Exemplo n.º 11
0
        public override bool Equals(object obj)
        {
            if (obj is EntryCriteria)
            {
                var other = obj as EntryCriteria;

                if (!PageNumber.Equals(other.PageNumber))
                {
                    return(false);
                }

                if (!PageSize.Equals(other.PageSize))
                {
                    return(false);
                }

                if (Tag == null && other.Tag != null)
                {
                    return(false);
                }

                if (Tag != null)
                {
                    if (other.Tag == null || !Tag.Equals(other.Tag))
                    {
                        return(false);
                    }
                }

                if (Category == null && other.Category != null)
                {
                    return(false);
                }

                if (Category != null)
                {
                    if (other.Category == null || !Category.Equals(other.Category))
                    {
                        return(false);
                    }
                }

                if (MinimumDate == null && other.MinimumDate != null)
                {
                    return(false);
                }

                if (MinimumDate != null)
                {
                    if (other.MinimumDate == null || !MinimumDate.Equals(other.MinimumDate))
                    {
                        return(false);
                    }
                }

                if (MaximumDate == null && other.MaximumDate != null)
                {
                    return(false);
                }

                if (MaximumDate != null)
                {
                    if (other.MaximumDate == null || !MaximumDate.Equals(other.MaximumDate))
                    {
                        return(false);
                    }
                }

                return(true);
            }

            return(false);
        }
Exemplo n.º 12
0
        /// <summary>
        /// Returns true if PdfDigiSignParameters instances are equal
        /// </summary>
        /// <param name="input">Instance of PdfDigiSignParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PdfDigiSignParameters input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     FileId == input.FileId ||
                     (FileId != null &&
                      FileId.Equals(input.FileId))
                     ) &&
                 (
                     CertificateData == input.CertificateData ||
                     (CertificateData != null &&
                      CertificateData.Equals(input.CertificateData))
                 ) &&
                 (
                     CertificatePassword == input.CertificatePassword ||
                     (CertificatePassword != null &&
                      CertificatePassword.Equals(input.CertificatePassword))
                 ) &&
                 (
                     SignatureMode == input.SignatureMode ||
                     SignatureMode.Equals(input.SignatureMode)
                 ) &&
                 (
                     SignatureCertificationLevel == input.SignatureCertificationLevel ||
                     SignatureCertificationLevel.Equals(input.SignatureCertificationLevel)
                 ) &&
                 (
                     SignatureHashAlgorithm == input.SignatureHashAlgorithm ||
                     SignatureHashAlgorithm.Equals(input.SignatureHashAlgorithm)
                 ) &&
                 (
                     SignerName == input.SignerName ||
                     (SignerName != null &&
                      SignerName.Equals(input.SignerName))
                 ) &&
                 (
                     Reason == input.Reason ||
                     (Reason != null &&
                      Reason.Equals(input.Reason))
                 ) &&
                 (
                     Location == input.Location ||
                     (Location != null &&
                      Location.Equals(input.Location))
                 ) &&
                 (
                     ContactInfo == input.ContactInfo ||
                     (ContactInfo != null &&
                      ContactInfo.Equals(input.ContactInfo))
                 ) &&
                 (
                     TimeStampURL == input.TimeStampURL ||
                     (TimeStampURL != null &&
                      TimeStampURL.Equals(input.TimeStampURL))
                 ) &&
                 (
                     TimeStampUserName == input.TimeStampUserName ||
                     (TimeStampUserName != null &&
                      TimeStampUserName.Equals(input.TimeStampUserName))
                 ) &&
                 (
                     TimeStampPassword == input.TimeStampPassword ||
                     (TimeStampPassword != null &&
                      TimeStampPassword.Equals(input.TimeStampPassword))
                 ) &&
                 (
                     Linearize == input.Linearize ||
                     Linearize.Equals(input.Linearize)
                 ) &&
                 (
                     DrawSignature == input.DrawSignature ||
                     DrawSignature.Equals(input.DrawSignature)
                 ) &&
                 (
                     PageNumber == input.PageNumber ||
                     PageNumber.Equals(input.PageNumber)
                 ) &&
                 (
                     ShowValidationMark == input.ShowValidationMark ||
                     ShowValidationMark.Equals(input.ShowValidationMark)
                 ) &&
                 (
                     ImageData == input.ImageData ||
                     (ImageData != null &&
                      ImageData.Equals(input.ImageData))
                 ) &&
                 (
                     SignatureLayout == input.SignatureLayout ||
                     (SignatureLayout != null &&
                      SignatureLayout.Equals(input.SignatureLayout))
                 ) &&
                 (
                     SignatureText == input.SignatureText ||
                     (SignatureText != null &&
                      SignatureText.Equals(input.SignatureText))
                 ));
        }
Exemplo n.º 13
0
 public bool Equals(PaginatedRequest <T> other)
 {
     return(PageNumber.Equals(other.PageNumber) &&
            CountPerPage.Equals(other.CountPerPage));
 }
Exemplo n.º 14
0
        /// <summary>
        /// Returns true if BarcodeInfo instances are equal
        /// </summary>
        /// <param name="input">Instance of BarcodeInfo to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(BarcodeInfo input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Type == input.Type ||
                     Type.Equals(input.Type)
                     ) &&
                 (
                     Barcode1DSymbology == input.Barcode1DSymbology ||
                     Barcode1DSymbology.Equals(input.Barcode1DSymbology)
                 ) &&
                 (
                     Data == input.Data ||
                     (Data != null &&
                      Data.Equals(input.Data))
                 ) &&
                 (
                     X1 == input.X1 ||
                     X1.Equals(input.X1)
                 ) &&
                 (
                     X2 == input.X2 ||
                     X2.Equals(input.X2)
                 ) &&
                 (
                     X3 == input.X3 ||
                     X3.Equals(input.X3)
                 ) &&
                 (
                     X4 == input.X4 ||
                     X4.Equals(input.X4)
                 ) &&
                 (
                     Y1 == input.Y1 ||
                     Y1.Equals(input.Y1)
                 ) &&
                 (
                     Y2 == input.Y2 ||
                     Y2.Equals(input.Y2)
                 ) &&
                 (
                     Y3 == input.Y3 ||
                     Y3.Equals(input.Y3)
                 ) &&
                 (
                     Y4 == input.Y4 ||
                     Y4.Equals(input.Y4)
                 ) &&
                 (
                     BboxLeftInches == input.BboxLeftInches ||
                     BboxLeftInches.Equals(input.BboxLeftInches)
                 ) &&
                 (
                     BboxTopInches == input.BboxTopInches ||
                     BboxTopInches.Equals(input.BboxTopInches)
                 ) &&
                 (
                     BboxWidthInches == input.BboxWidthInches ||
                     BboxWidthInches.Equals(input.BboxWidthInches)
                 ) &&
                 (
                     BboxHeightInches == input.BboxHeightInches ||
                     BboxHeightInches.Equals(input.BboxHeightInches)
                 ) &&
                 (
                     PageNumber == input.PageNumber ||
                     PageNumber.Equals(input.PageNumber)
                 ) &&
                 (
                     PagePixelWidth == input.PagePixelWidth ||
                     PagePixelWidth.Equals(input.PagePixelWidth)
                 ) &&
                 (
                     PagePixelHeight == input.PagePixelHeight ||
                     PagePixelHeight.Equals(input.PagePixelHeight)
                 ) &&
                 (
                     PageHorizontalResolution == input.PageHorizontalResolution ||
                     PageHorizontalResolution.Equals(input.PageHorizontalResolution)
                 ) &&
                 (
                     PageVerticalResolution == input.PageVerticalResolution ||
                     PageVerticalResolution.Equals(input.PageVerticalResolution)
                 ));
        }