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

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     Links == other.Links ||
                     Links != null &&
                     Links.Equals(other.Links)
                 ) &&
                 (
                     DisplayName == other.DisplayName ||
                     DisplayName != null &&
                     DisplayName.Equals(other.DisplayName)
                 ) &&
                 (
                     DurationInMillis == other.DurationInMillis ||

                     DurationInMillis.Equals(other.DurationInMillis)
                 ) &&
                 (
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                 ) &&
                 (
                     Input == other.Input ||
                     Input != null &&
                     Input.Equals(other.Input)
                 ) &&
                 (
                     Result == other.Result ||
                     Result != null &&
                     Result.Equals(other.Result)
                 ) &&
                 (
                     StartTime == other.StartTime ||
                     StartTime != null &&
                     StartTime.Equals(other.StartTime)
                 ) &&
                 (
                     State == other.State ||
                     State != null &&
                     State.Equals(other.State)
                 ));
        }
Example #2
0
        /// <summary>
        /// Returns true if PipelineRunNode instances are equal
        /// </summary>
        /// <param name="other">Instance of PipelineRunNode to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PipelineRunNode other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     DisplayName == other.DisplayName ||
                     DisplayName != null &&
                     DisplayName.Equals(other.DisplayName)
                 ) &&
                 (
                     DurationInMillis == other.DurationInMillis ||

                     DurationInMillis.Equals(other.DurationInMillis)
                 ) &&
                 (
                     Edges == other.Edges ||
                     Edges != null &&
                     other.Edges != null &&
                     Edges.SequenceEqual(other.Edges)
                 ) &&
                 (
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                 ) &&
                 (
                     Result == other.Result ||
                     Result != null &&
                     Result.Equals(other.Result)
                 ) &&
                 (
                     StartTime == other.StartTime ||
                     StartTime != null &&
                     StartTime.Equals(other.StartTime)
                 ) &&
                 (
                     State == other.State ||
                     State != null &&
                     State.Equals(other.State)
                 ));
        }
Example #3
0
        /// <summary>
        /// Returns true if GenericResource instances are equal
        /// </summary>
        /// <param name="other">Instance of GenericResource to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(GenericResource other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                     ) &&
                 (
                     DisplayName == other.DisplayName ||
                     DisplayName != null &&
                     DisplayName.Equals(other.DisplayName)
                 ) &&
                 (
                     DurationInMillis == other.DurationInMillis ||

                     DurationInMillis.Equals(other.DurationInMillis)
                 ) &&
                 (
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                 ) &&
                 (
                     Result == other.Result ||
                     Result != null &&
                     Result.Equals(other.Result)
                 ) &&
                 (
                     StartTime == other.StartTime ||
                     StartTime != null &&
                     StartTime.Equals(other.StartTime)
                 ));
        }
Example #4
0
        /// <summary>
        /// Returns true if PipelinelatestRun instances are equal
        /// </summary>
        /// <param name="other">Instance of PipelinelatestRun to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PipelinelatestRun other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Artifacts == other.Artifacts ||
                     Artifacts != null &&
                     other.Artifacts != null &&
                     Artifacts.SequenceEqual(other.Artifacts)
                     ) &&
                 (
                     DurationInMillis == other.DurationInMillis ||

                     DurationInMillis.Equals(other.DurationInMillis)
                 ) &&
                 (
                     EstimatedDurationInMillis == other.EstimatedDurationInMillis ||

                     EstimatedDurationInMillis.Equals(other.EstimatedDurationInMillis)
                 ) &&
                 (
                     EnQueueTime == other.EnQueueTime ||
                     EnQueueTime != null &&
                     EnQueueTime.Equals(other.EnQueueTime)
                 ) &&
                 (
                     EndTime == other.EndTime ||
                     EndTime != null &&
                     EndTime.Equals(other.EndTime)
                 ) &&
                 (
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                 ) &&
                 (
                     Organization == other.Organization ||
                     Organization != null &&
                     Organization.Equals(other.Organization)
                 ) &&
                 (
                     Pipeline == other.Pipeline ||
                     Pipeline != null &&
                     Pipeline.Equals(other.Pipeline)
                 ) &&
                 (
                     Result == other.Result ||
                     Result != null &&
                     Result.Equals(other.Result)
                 ) &&
                 (
                     RunSummary == other.RunSummary ||
                     RunSummary != null &&
                     RunSummary.Equals(other.RunSummary)
                 ) &&
                 (
                     StartTime == other.StartTime ||
                     StartTime != null &&
                     StartTime.Equals(other.StartTime)
                 ) &&
                 (
                     State == other.State ||
                     State != null &&
                     State.Equals(other.State)
                 ) &&
                 (
                     Type == other.Type ||
                     Type != null &&
                     Type.Equals(other.Type)
                 ) &&
                 (
                     CommitId == other.CommitId ||
                     CommitId != null &&
                     CommitId.Equals(other.CommitId)
                 ) &&
                 (
                     Class == other.Class ||
                     Class != null &&
                     Class.Equals(other.Class)
                 ));
        }