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? parent, int? priority, object[]? relations, 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; Parent = parent; Priority = priority; Relations = relations; 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? Parent { get; set; } // { init; get; } public int? Priority { get; set; } // { init; get; } public object[]? Relations { 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; } }