internal PipelineDetailsModel(Pipeline pipeline) { PipelineName = pipeline.PipelineName; Status = pipeline.Status; StageDetails = new StageDetailsModel[pipeline.Stages.Count]; for (int i = 0; i < StageDetails.Length; ++i) { StageDetails[i] = new StageDetailsModel { Status = pipeline.Stages[i].Status, StageName = pipeline.Stages[i].Name }; } LastUpdatedTime = "Last Updated: " + DateTime.Now.ToString("HH:mm:ss tt"); }
private bool Equals(StageDetailsModel other) { return string.Equals(StageName, other.StageName); }
private bool Equals(StageDetailsModel other) { return(string.Equals(StageName, other.StageName)); }