Moved logic around
This commit is contained in:
36
Adaptation/FileHandlers/json/WorkItems/PollValues.cs
Normal file
36
Adaptation/FileHandlers/json/WorkItems/PollValues.cs
Normal file
@ -0,0 +1,36 @@
|
||||
namespace Adaptation.FileHandlers.json.WorkItems;
|
||||
|
||||
public class PollValues
|
||||
{
|
||||
|
||||
#nullable enable
|
||||
|
||||
public PollValues(float? business,
|
||||
int businessCount,
|
||||
float? effort,
|
||||
int effortCount,
|
||||
float? risk,
|
||||
int riskCount,
|
||||
float? time,
|
||||
int timeCount)
|
||||
{
|
||||
Business = business;
|
||||
BusinessCount = businessCount;
|
||||
Effort = effort;
|
||||
EffortCount = effortCount;
|
||||
Risk = risk;
|
||||
RiskCount = riskCount;
|
||||
Time = time;
|
||||
TimeCount = timeCount;
|
||||
}
|
||||
|
||||
public float? Business { get; set; }
|
||||
public int? BusinessCount { get; set; }
|
||||
public float? Effort { get; set; }
|
||||
public int? EffortCount { get; set; }
|
||||
public float? Risk { get; set; }
|
||||
public int? RiskCount { get; set; }
|
||||
public float? Time { get; set; }
|
||||
public int? TimeCount { get; set; }
|
||||
|
||||
}
|
@ -7,15 +7,17 @@ public class Record
|
||||
|
||||
#nullable enable
|
||||
|
||||
public Record(WorkItem workItem, WorkItem? parent, ReadOnlyCollection<Record> children)
|
||||
public Record(WorkItem workItem, WorkItem? parent, ReadOnlyCollection<Record> children, PollValues? pollValues)
|
||||
{
|
||||
WorkItem = workItem;
|
||||
Parent = parent;
|
||||
Children = children;
|
||||
PollValues = pollValues;
|
||||
}
|
||||
|
||||
public WorkItem WorkItem { get; set; }
|
||||
public WorkItem? Parent { get; set; }
|
||||
public ReadOnlyCollection<Record> Children { get; set; }
|
||||
public PollValues? PollValues { get; set; }
|
||||
|
||||
}
|
Reference in New Issue
Block a user