-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorkItemDTO.cs
More file actions
100 lines (71 loc) · 2.64 KB
/
WorkItemDTO.cs
File metadata and controls
100 lines (71 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace AzureDevopsTracker.Dtos
{
public record WorkItemDto
{
[JsonProperty("id")]
public string Id { get; init; }
[JsonProperty("created_at")]
public DateTime CreatedAt { get; init; }
[JsonProperty("assigned_to")]
public string AssignedTo { get; init; }
[JsonProperty("type")]
public string Type { get; init; }
[JsonProperty("effort")]
public string Effort { get; init; }
[JsonProperty("story_points")]
public string StoryPoints { get; init; }
[JsonProperty("original_estimate")]
public string OriginalEstimate { get; init; }
[JsonProperty("created_by")]
public string CreatedBy { get; init; }
[JsonProperty("title")]
public string Title { get; init; }
[JsonProperty("team_project")]
public string TeamProject { get; init; }
[JsonProperty("iteration_path")]
public string IterationPath { get; init; }
[JsonProperty("area_path")]
public string AreaPath { get; init; }
[JsonProperty("current_status")]
public string CurrentStatus { get; init; }
[JsonProperty("work_item_parent_id")]
public string WorkItemParentId { get; init; }
[JsonProperty("activity")]
public string Activity { get; init; }
[JsonProperty("tags")]
public IEnumerable<string> Tags { get; init; }
[JsonProperty("workItems_changes")]
public List<WorkItemChangeDto> WorkItemsChangesDto { get; init; }
[JsonProperty("times_by_state")]
public List<TimeByStateDto> TimesByStateDto { get; init; }
}
public record WorkItemChangeDto
{
[JsonProperty("new_date")]
public DateTime NewDate { get; init; }
[JsonProperty("new_state")]
public string NewState { get; init; }
[JsonProperty("old_state")]
public string OldState { get; init; }
[JsonProperty("old_date")]
public DateTime? OldDate { get; init; }
[JsonProperty("changed_by")]
public string ChangedBy { get; init; }
}
public record TimeByStateDto
{
[JsonProperty("created_at")]
public DateTime CreatedAt { get; init; }
[JsonProperty("updated_at")]
public DateTime UpdatedAt { get; init; }
[JsonProperty("state")]
public string State { get; init; }
[JsonProperty("total_time")]
public string TotalTime { get; init; }
[JsonProperty("total_worked_time")]
public string TotalWorkedTime { get; init; }
}
}