Changed to long types
122517
This commit is contained in:
@ -9,15 +9,16 @@ public class Fields
|
||||
#nullable enable
|
||||
|
||||
[JsonConstructor]
|
||||
public Fields(int customRRminusOE,
|
||||
public Fields(float? customRRminusOE,
|
||||
CustomRequester? customRequester,
|
||||
float customWSJF,
|
||||
int microsoftVSTSCommonBusinessValue,
|
||||
float? customWSJF,
|
||||
DateTime microsoftVSTSCommonActivatedDate,
|
||||
float? microsoftVSTSCommonBusinessValue,
|
||||
DateTime microsoftVSTSCommonClosedDate,
|
||||
int microsoftVSTSCommonPriority,
|
||||
DateTime microsoftVSTSCommonResolvedDate,
|
||||
DateTime microsoftVSTSCommonStateChangeDate,
|
||||
float microsoftVSTSCommonTimeCriticality,
|
||||
float? microsoftVSTSCommonTimeCriticality,
|
||||
float? microsoftVSTSSchedulingEffort,
|
||||
DateTime microsoftVSTSSchedulingStartDate,
|
||||
DateTime microsoftVSTSSchedulingTargetDate,
|
||||
@ -42,6 +43,7 @@ public class Fields
|
||||
CustomRequester = customRequester;
|
||||
CustomRRminusOE = customRRminusOE;
|
||||
CustomWSJF = customWSJF;
|
||||
MicrosoftVSTSCommonActivatedDate = microsoftVSTSCommonActivatedDate;
|
||||
MicrosoftVSTSCommonBusinessValue = microsoftVSTSCommonBusinessValue;
|
||||
MicrosoftVSTSCommonClosedDate = microsoftVSTSCommonClosedDate;
|
||||
MicrosoftVSTSCommonPriority = microsoftVSTSCommonPriority;
|
||||
@ -71,14 +73,15 @@ public class Fields
|
||||
}
|
||||
|
||||
[JsonPropertyName("Custom.Requester")] public CustomRequester? CustomRequester { get; } // { init; get; }
|
||||
[JsonPropertyName("Custom.RRminusOE")] public int CustomRRminusOE { get; } // { init; get; }
|
||||
[JsonPropertyName("Custom.WSJF")] public float CustomWSJF { get; } // { init; get; }
|
||||
[JsonPropertyName("Microsoft.VSTS.Common.BusinessValue")] public int MicrosoftVSTSCommonBusinessValue { get; } // { init; get; }
|
||||
[JsonPropertyName("Custom.RRminusOE")] public float? CustomRRminusOE { get; } // { init; get; }
|
||||
[JsonPropertyName("Custom.WSJF")] public float? CustomWSJF { get; } // { init; get; }
|
||||
[JsonPropertyName("Microsoft.VSTS.Common.ActivatedDate")] public DateTime MicrosoftVSTSCommonActivatedDate { get; } // { init; get; }
|
||||
[JsonPropertyName("Microsoft.VSTS.Common.BusinessValue")] public float? MicrosoftVSTSCommonBusinessValue { get; } // { init; get; }
|
||||
[JsonPropertyName("Microsoft.VSTS.Common.ClosedDate")] public DateTime MicrosoftVSTSCommonClosedDate { get; } // { init; get; }
|
||||
[JsonPropertyName("Microsoft.VSTS.Common.Priority")] public int MicrosoftVSTSCommonPriority { get; } // { init; get; }
|
||||
[JsonPropertyName("Microsoft.VSTS.Common.ResolvedDate")] public DateTime MicrosoftVSTSCommonResolvedDate { get; } // { init; get; }
|
||||
[JsonPropertyName("Microsoft.VSTS.Common.StateChangeDate")] public DateTime MicrosoftVSTSCommonStateChangeDate { get; } // { init; get; }
|
||||
[JsonPropertyName("Microsoft.VSTS.Common.TimeCriticality")] public float MicrosoftVSTSCommonTimeCriticality { get; } // { init; get; }
|
||||
[JsonPropertyName("Microsoft.VSTS.Common.TimeCriticality")] public float? MicrosoftVSTSCommonTimeCriticality { get; } // { init; get; }
|
||||
[JsonPropertyName("Microsoft.VSTS.Scheduling.Effort")] public float? MicrosoftVSTSSchedulingEffort { get; } // { init; get; }
|
||||
[JsonPropertyName("Microsoft.VSTS.Scheduling.StartDate")] public DateTime MicrosoftVSTSSchedulingStartDate { get; } // { init; get; }
|
||||
[JsonPropertyName("Microsoft.VSTS.Scheduling.TargetDate")] public DateTime MicrosoftVSTSSchedulingTargetDate { get; } // { init; get; }
|
||||
|
@ -9,15 +9,16 @@ public class WorkItem
|
||||
#nullable enable
|
||||
|
||||
[JsonConstructor]
|
||||
public WorkItem(string areaPath,
|
||||
public WorkItem(DateTime? activatedDate,
|
||||
string areaPath,
|
||||
string? assignedTo,
|
||||
int? businessValue,
|
||||
long? businessValue,
|
||||
DateTime changedDate,
|
||||
DateTime? closedDate,
|
||||
int commentCount,
|
||||
DateTime createdDate,
|
||||
string description,
|
||||
float? effort,
|
||||
long? effort,
|
||||
int id,
|
||||
string iterationPath,
|
||||
int? parent,
|
||||
@ -26,17 +27,18 @@ public class WorkItem
|
||||
string? requester,
|
||||
DateTime? resolvedDate,
|
||||
int revision,
|
||||
int? riskReductionMinusOpportunityEnablement,
|
||||
long? riskReductionMinusOpportunityEnablement,
|
||||
DateTime? startDate,
|
||||
string state,
|
||||
string tags,
|
||||
DateTime? targetDate,
|
||||
float? timeCriticality,
|
||||
long? timeCriticality,
|
||||
string title,
|
||||
string? violation,
|
||||
float? weightedShortestJobFirst,
|
||||
long? weightedShortestJobFirst,
|
||||
string workItemType)
|
||||
{
|
||||
ActivatedDate = activatedDate;
|
||||
AreaPath = areaPath;
|
||||
AssignedTo = assignedTo;
|
||||
BusinessValue = businessValue;
|
||||
@ -70,7 +72,8 @@ public class WorkItem
|
||||
|
||||
public static WorkItem Get(WorkItem workItem, string? violation)
|
||||
{
|
||||
WorkItem result = new(workItem.AreaPath,
|
||||
WorkItem result = new(workItem.ActivatedDate,
|
||||
workItem.AreaPath,
|
||||
workItem.AssignedTo,
|
||||
workItem.BusinessValue,
|
||||
workItem.ChangedDate,
|
||||
@ -100,15 +103,16 @@ public class WorkItem
|
||||
return result;
|
||||
}
|
||||
|
||||
public DateTime? ActivatedDate { get; set; }
|
||||
public string AreaPath { get; set; }
|
||||
public string? AssignedTo { get; set; }
|
||||
public int? BusinessValue { get; set; }
|
||||
public long? BusinessValue { get; set; }
|
||||
public DateTime ChangedDate { get; set; }
|
||||
public DateTime? ClosedDate { get; set; }
|
||||
public int CommentCount { get; set; }
|
||||
public DateTime CreatedDate { get; set; }
|
||||
public string Description { get; set; }
|
||||
public float? Effort { get; set; }
|
||||
public long? Effort { get; set; }
|
||||
public int Id { get; set; }
|
||||
public string IterationPath { get; set; }
|
||||
public int? Parent { get; set; }
|
||||
@ -117,15 +121,15 @@ public class WorkItem
|
||||
public string? Requester { get; set; }
|
||||
public DateTime? ResolvedDate { get; set; }
|
||||
public int Revision { get; set; }
|
||||
public int? RiskReductionMinusOpportunityEnablement { get; set; }
|
||||
public long? RiskReductionMinusOpportunityEnablement { get; set; }
|
||||
public DateTime? StartDate { get; set; }
|
||||
public string State { get; set; }
|
||||
public string Tags { get; set; }
|
||||
public DateTime? TargetDate { get; set; }
|
||||
public float? TimeCriticality { get; set; }
|
||||
public long? TimeCriticality { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string? Violation { get; set; }
|
||||
public string WorkItemType { get; set; }
|
||||
public float? WeightedShortestJobFirst { get; set; }
|
||||
public long? WeightedShortestJobFirst { get; set; }
|
||||
|
||||
}
|
Reference in New Issue
Block a user