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

            return
                ((
                     Next == other.Next ||
                     Next != null &&
                     Next.Equals(other.Next)
                     ) &&
                 (
                     Prev == other.Prev ||
                     Prev != null &&
                     Prev.Equals(other.Prev)
                 ) &&
                 (
                     Self == other.Self ||
                     Self != null &&
                     Self.Equals(other.Self)
                 ));
        }
        /// <summary>
        /// Returns true if PipelineExecutionListRepresentationLinks instances are equal
        /// </summary>
        /// <param name="other">Instance of PipelineExecutionListRepresentationLinks to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PipelineExecutionListRepresentationLinks other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Next == other.Next ||
                     Next != null &&
                     Next.Equals(other.Next)
                     ) &&
                 (
                     Page == other.Page ||
                     Page != null &&
                     Page.Equals(other.Page)
                 ) &&
                 (
                     Prev == other.Prev ||
                     Prev != null &&
                     Prev.Equals(other.Prev)
                 ) &&
                 (
                     Self == other.Self ||
                     Self != null &&
                     Self.Equals(other.Self)
                 ));
        }
        /// <summary>
        /// Returns true if PaginationHeaderResponse instances are equal
        /// </summary>
        /// <param name="other">Instance of PaginationHeaderResponse to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PaginationHeaderResponse other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Total == other.Total ||

                     Total.Equals(other.Total)
                     ) &&
                 (
                     Count == other.Count ||

                     Count.Equals(other.Count)
                 ) &&
                 (
                     Size == other.Size ||

                     Size.Equals(other.Size)
                 ) &&
                 (
                     Current == other.Current ||

                     Current.Equals(other.Current)
                 ) &&
                 (
                     First == other.First ||
                     First != null &&
                     First.Equals(other.First)
                 ) &&
                 (
                     Last == other.Last ||
                     Last != null &&
                     Last.Equals(other.Last)
                 ) &&
                 (
                     Prev == other.Prev ||
                     Prev != null &&
                     Prev.Equals(other.Prev)
                 ) &&
                 (
                     Next == other.Next ||
                     Next != null &&
                     Next.Equals(other.Next)
                 ));
        }
Exemplo n.º 4
0
        /// <summary>
        /// Returns true if Links instances are equal
        /// </summary>
        /// <param name="other">Instance of Links to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Links other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Self == other.Self ||
                     Self != null &&
                     Self.Equals(other.Self)
                     ) &&
                 (
                     First == other.First ||
                     First != null &&
                     First.Equals(other.First)
                 ) &&
                 (
                     Prev == other.Prev ||
                     Prev != null &&
                     Prev.Equals(other.Prev)
                 ) &&
                 (
                     Next == other.Next ||
                     Next != null &&
                     Next.Equals(other.Next)
                 ) &&
                 (
                     Last == other.Last ||
                     Last != null &&
                     Last.Equals(other.Last)
                 ));
        }