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

            return
                ((
                     PageIndex == other.PageIndex ||
                     PageIndex != null &&
                     PageIndex.Equals(other.PageIndex)
                     ) &&
                 (
                     TotalPages == other.TotalPages ||
                     TotalPages != null &&
                     TotalPages.Equals(other.TotalPages)
                 ) &&
                 (
                     PageSize == other.PageSize ||
                     PageSize != null &&
                     PageSize.Equals(other.PageSize)
                 ) &&
                 (
                     Items == other.Items ||
                     Items != null &&
                     Items.SequenceEqual(other.Items)
                 ));
        }
        /// <summary>
        /// Returns true if PaginatedListIEnumerableStandardsApplicableReviews instances are equal
        /// </summary>
        /// <param name="other">Instance of PaginatedListIEnumerableStandardsApplicableReviews to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PaginatedListIEnumerableStandardsApplicableReviews other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     PageIndex == other.PageIndex ||
                     PageIndex != null &&
                     PageIndex.Equals(other.PageIndex)
                     ) &&
                 (
                     TotalPages == other.TotalPages ||
                     TotalPages != null &&
                     TotalPages.Equals(other.TotalPages)
                 ) &&
                 (
                     PageSize == other.PageSize ||
                     PageSize != null &&
                     PageSize.Equals(other.PageSize)
                 ) &&
                 (
                     Items == other.Items ||
                     Items != null &&
                     Items.SequenceEqual(other.Items)
                 ));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Returns true if PaginatedListIEnumerableCapabilitiesImplementedEvidence instances are equal
        /// </summary>
        /// <param name="other">Instance of PaginatedListIEnumerableCapabilitiesImplementedEvidence to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PaginatedListIEnumerableCapabilitiesImplementedEvidence other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     PageIndex == other.PageIndex ||
                     PageIndex != null &&
                     PageIndex.Equals(other.PageIndex)
                     ) &&
                 (
                     TotalPages == other.TotalPages ||
                     TotalPages != null &&
                     TotalPages.Equals(other.TotalPages)
                 ) &&
                 (
                     PageSize == other.PageSize ||
                     PageSize != null &&
                     PageSize.Equals(other.PageSize)
                 ) &&
                 (
                     Items == other.Items ||
                     Items != null &&
                     Items.SequenceEqual(other.Items)
                 ));
        }
Exemplo n.º 4
0
        /// <summary>
        /// Returns true if XPaginationHeader instances are equal
        /// </summary>
        /// <param name="other">Instance of XPaginationHeader to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(XPaginationHeader other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     CurrentPage == other.CurrentPage ||

                     CurrentPage.Equals(other.CurrentPage)
                     ) &&
                 (
                     PageSize == other.PageSize ||

                     PageSize.Equals(other.PageSize)
                 ) &&
                 (
                     TotalCount == other.TotalCount ||

                     TotalCount.Equals(other.TotalCount)
                 ) &&
                 (
                     TotalPages == other.TotalPages ||

                     TotalPages.Equals(other.TotalPages)
                 ) &&
                 (
                     PreviousPageInputParameters == other.PreviousPageInputParameters ||
                     PreviousPageInputParameters != null &&
                     PreviousPageInputParameters.Equals(other.PreviousPageInputParameters)
                 ) &&
                 (
                     NextPageInputParameters == other.NextPageInputParameters ||
                     NextPageInputParameters != null &&
                     NextPageInputParameters.Equals(other.NextPageInputParameters)
                 ));
        }