mirror of
https://github.com/actions/runner.git
synced 2025-12-13 00:36:29 +00:00
GitHub Actions Runner
This commit is contained in:
35
src/Sdk/DTWebApi/WebApi/TimelineRecordFeedLinesWrapper.cs
Normal file
35
src/Sdk/DTWebApi/WebApi/TimelineRecordFeedLinesWrapper.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace GitHub.DistributedTask.WebApi
|
||||
{
|
||||
[DataContract]
|
||||
public sealed class TimelineRecordFeedLinesWrapper
|
||||
{
|
||||
public TimelineRecordFeedLinesWrapper()
|
||||
{
|
||||
}
|
||||
|
||||
public TimelineRecordFeedLinesWrapper(Guid stepId, IList<string> lines)
|
||||
{
|
||||
this.StepId = stepId;
|
||||
this.Value = lines.ToList();
|
||||
this.Count = lines.Count;
|
||||
}
|
||||
|
||||
[DataMember(Order = 0)]
|
||||
public Int32 Count { get; private set; }
|
||||
|
||||
[DataMember]
|
||||
public List<string> Value
|
||||
{
|
||||
get; private set;
|
||||
}
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public Guid StepId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user