/// <summary> /// Returns true if PipelineExecution instances are equal /// </summary> /// <param name="other">Instance of PipelineExecution to be compared</param> /// <returns>Boolean</returns> public bool Equals(PipelineExecution other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( ProgramId == other.ProgramId || ProgramId != null && ProgramId.Equals(other.ProgramId) ) && ( PipelineId == other.PipelineId || PipelineId != null && PipelineId.Equals(other.PipelineId) ) && ( ArtifactsVersion == other.ArtifactsVersion || ArtifactsVersion != null && ArtifactsVersion.Equals(other.ArtifactsVersion) ) && ( User == other.User || User != null && User.Equals(other.User) ) && ( Status == other.Status || Status.Equals(other.Status) ) && ( Trigger == other.Trigger || Trigger.Equals(other.Trigger) ) && ( CreatedAt == other.CreatedAt || CreatedAt != null && CreatedAt.Equals(other.CreatedAt) ) && ( UpdatedAt == other.UpdatedAt || UpdatedAt != null && UpdatedAt.Equals(other.UpdatedAt) ) && ( FinishedAt == other.FinishedAt || FinishedAt != null && FinishedAt.Equals(other.FinishedAt) ) && ( Embedded == other.Embedded || Embedded != null && Embedded.Equals(other.Embedded) ) && ( Links == other.Links || Links != null && Links.Equals(other.Links) )); }
/// <summary> /// Returns true if PipelineExecutionStepState instances are equal /// </summary> /// <param name="other">Instance of PipelineExecutionStepState to be compared</param> /// <returns>Boolean</returns> public bool Equals(PipelineExecutionStepState other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( StepId == other.StepId || StepId != null && StepId.Equals(other.StepId) ) && ( PhaseId == other.PhaseId || PhaseId != null && PhaseId.Equals(other.PhaseId) ) && ( Action == other.Action || Action != null && Action.Equals(other.Action) ) && ( Repository == other.Repository || Repository != null && Repository.Equals(other.Repository) ) && ( Branch == other.Branch || Branch != null && Branch.Equals(other.Branch) ) && ( Environment == other.Environment || Environment != null && Environment.Equals(other.Environment) ) && ( EnvironmentType == other.EnvironmentType || EnvironmentType != null && EnvironmentType.Equals(other.EnvironmentType) ) && ( StartedAt == other.StartedAt || StartedAt != null && StartedAt.Equals(other.StartedAt) ) && ( FinishedAt == other.FinishedAt || FinishedAt != null && FinishedAt.Equals(other.FinishedAt) ) && ( Details == other.Details || Details != null && other.Details != null && Details.SequenceEqual(other.Details) ) && ( Status == other.Status || Status.Equals(other.Status) ) && ( Links == other.Links || Links != null && Links.Equals(other.Links) )); }