2024-09-07 10:04:57 -07:00

88 lines
3.4 KiB
C#

using System;
using System.Text.Json.Serialization;
namespace Adaptation.FileHandlers.json.WorkItems;
public class WorkItem
{
#nullable enable
[JsonConstructor]
public WorkItem(string areaPath,
string? assignedTo,
int? businessValue,
DateTime changedDate,
DateTime? closedDate,
int commentCount,
DateTime createdDate,
string description,
float? effort,
int id,
string iterationPath,
int? priority,
string? requester,
DateTime? resolvedDate,
int revision,
int? riskReductionMinusOpportunityEnablement,
DateTime? startDate,
string state,
string tags,
DateTime? targetDate,
float? timeCriticality,
string title,
string workItemType,
float? weightedShortestJobFirst)
{
AreaPath = areaPath;
AssignedTo = assignedTo;
BusinessValue = businessValue;
ChangedDate = changedDate;
ClosedDate = closedDate;
CommentCount = commentCount;
CreatedDate = createdDate;
Description = description;
Effort = effort;
Id = id;
IterationPath = iterationPath;
Priority = priority;
Requester = requester;
ResolvedDate = resolvedDate;
Revision = revision;
RiskReductionMinusOpportunityEnablement = riskReductionMinusOpportunityEnablement;
StartDate = startDate;
State = state;
Tags = tags;
TargetDate = targetDate;
TimeCriticality = timeCriticality;
Title = title;
WorkItemType = workItemType;
WeightedShortestJobFirst = weightedShortestJobFirst;
}
public string AreaPath { get; set; } // { init; get; }
public string? AssignedTo { get; set; } // { init; get; }
public int? BusinessValue { get; set; } // { init; get; }
public DateTime ChangedDate { get; set; } // { init; get; }
public DateTime? ClosedDate { get; set; } // { init; get; }
public int CommentCount { get; set; } // { init; get; }
public DateTime CreatedDate { get; set; } // { init; get; }
public string Description { get; set; } // { init; get; }
public float? Effort { get; set; } // { init; get; }
public int Id { get; set; } // { init; get; }
public string IterationPath { get; set; } // { init; get; }
public int? Priority { get; set; } // { init; get; }
public string? Requester { get; set; } // { init; get; }
public DateTime? ResolvedDate { get; set; } // { init; get; }
public int Revision { get; set; } // { init; get; }
public int? RiskReductionMinusOpportunityEnablement { get; set; } // { init; get; }
public DateTime? StartDate { get; set; } // { init; get; }
public string State { get; set; } // { init; get; }
public string Tags { get; set; } // { init; get; }
public DateTime? TargetDate { get; set; } // { init; get; }
public float? TimeCriticality { get; set; } // { init; get; }
public string Title { get; set; } // { init; get; }
public string WorkItemType { get; set; } // { init; get; }
public float? WeightedShortestJobFirst { get; set; } // { init; get; }
}