_AssignedToNameToEncodedPAT
_LastDateForcedUpdatedBy
_LastDateDeleteForcedUpdatedBy
This commit is contained in:
2023-10-08 15:37:36 -07:00
parent 7d8f409ff3
commit 61334d690b
8 changed files with 293 additions and 17 deletions

View File

@ -0,0 +1,27 @@
using System.Text.Json.Serialization;
namespace Adaptation.FileHandlers.json.WorkItems;
public class CommentVersionRef
{
[JsonConstructor]
public CommentVersionRef(
int commentId,
int version,
string url
)
{
CommentId = commentId;
Version = version;
URL = url;
}
[JsonPropertyName("commentId")]
public int CommentId { get; } // { init; get; }
[JsonPropertyName("version")]
public int Version { get; } // { init; get; }
[JsonPropertyName("url")]
public string URL { get; } // { init; get; }
}

View File

@ -24,6 +24,7 @@ public class Fields
int microsoftVSTSCommonPriority,
string systemDescription,
string systemTags,
string systemHistory,
float? effort,
DateTime targetDate
)
@ -45,6 +46,7 @@ public class Fields
MicrosoftVSTSCommonPriority = microsoftVSTSCommonPriority;
SystemDescription = systemDescription;
SystemTags = systemTags;
SystemHistory = systemHistory;
Effort = effort;
TargetDate = targetDate;
}
@ -100,6 +102,9 @@ public class Fields
[JsonPropertyName("System.Tags")]
public string SystemTags { get; } // { init; get; }
[JsonPropertyName("System.History")]
public string SystemHistory { get; } // { init; get; }
[JsonPropertyName("Microsoft.VSTS.Scheduling.Effort")]
public float? Effort { get; } // { init; get; }

View File

@ -9,12 +9,14 @@ public class Value
int id,
int rev,
Fields fields,
CommentVersionRef commentVersionRef,
string url
)
{
Id = id;
Rev = rev;
Fields = fields;
CommentVersionRef = commentVersionRef;
Url = url;
}
@ -27,6 +29,9 @@ public class Value
[JsonPropertyName("fields")]
public Fields Fields { get; }
[JsonPropertyName("commentVersionRef")]
public CommentVersionRef CommentVersionRef { get; }
[JsonPropertyName("url")]
public string Url { get; }
}