Skip to content

Commit

Permalink
Extend properties: add Created & Updated for `TimeTracking.WorkIt…
Browse files Browse the repository at this point in the history
…em` #58
  • Loading branch information
maartenba committed Sep 12, 2017
1 parent 1bd0127 commit c39f952
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
6 changes: 1 addition & 5 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
{
"sdk": {
"version": "1.0.4"
}
}
{"sdk":{"version":"1.1.0"}}
16 changes: 15 additions & 1 deletion src/YouTrackSharp/TimeTracking/WorkItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public WorkItem(DateTime? date, TimeSpan duration, string description = null, Wo
public string Id { get; set; }

/// <summary>
/// Represents when the work item was created.
/// Represents when the work item was performed.
/// </summary>
[JsonConverter(typeof(UnixDateTimeOffsetConverter))]
[JsonProperty("date")]
Expand Down Expand Up @@ -72,5 +72,19 @@ public WorkItem(DateTime? date, TimeSpan duration, string description = null, Wo
/// </summary>
[JsonProperty("author")]
public Author Author { get; set; }

/// <summary>
/// Represents when the work item was created.
/// </summary>
[JsonConverter(typeof(UnixDateTimeOffsetConverter))]
[JsonProperty("created")]
public DateTime? Created { get; set; }

/// <summary>
/// Represents when the work item was updated.
/// </summary>
[JsonConverter(typeof(UnixDateTimeOffsetConverter))]
[JsonProperty("updated")]
public DateTime? Updated { get; set; }
}
}

0 comments on commit c39f952

Please sign in to comment.