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

            return
                ((
                     Error == input.Error ||
                     (Error != null &&
                      Error.Equals(input.Error))
                     ) &&
                 (
                     RemainingTokens == input.RemainingTokens ||
                     RemainingTokens.Equals(input.RemainingTokens)
                 ) &&
                 (
                     ErrorInfo == input.ErrorInfo ||
                     (ErrorInfo != null &&
                      ErrorInfo.Equals(input.ErrorInfo))
                 ) &&
                 (
                     WarningsInfo == input.WarningsInfo ||
                     WarningsInfo != null &&
                     input.WarningsInfo != null &&
                     WarningsInfo.SequenceEqual(input.WarningsInfo)
                 ) &&
                 (
                     ContentRemoved == input.ContentRemoved ||
                     ContentRemoved.Equals(input.ContentRemoved)
                 ) &&
                 (
                     VersionChanged == input.VersionChanged ||
                     VersionChanged.Equals(input.VersionChanged)
                 ) &&
                 (
                     NewFileSize == input.NewFileSize ||
                     NewFileSize.Equals(input.NewFileSize)
                 ));
        }
 public bool Equals(ErrorInfoAdapter other)
 {
     return(!ReferenceEquals(null, other) && (ReferenceEquals(this, other) || ErrorInfo.Equals(other.ErrorInfo)));
 }