-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix JSON deserialization issue (#53)
* Added ClosedBy clas * Changed ClosedBy type from string to ClosedBy class
- Loading branch information
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Newtonsoft.Json; | ||
|
||
namespace GitLabApiClient.Models.Issues.Responses | ||
{ | ||
public sealed class ClosedBy : ModifiableObject | ||
{ | ||
[JsonProperty("active")] | ||
public string State; | ||
|
||
[JsonProperty("web_url")] | ||
public string WebUrl; | ||
|
||
[JsonProperty("avatar_url")] | ||
public string AvatarUrl; | ||
|
||
[JsonProperty("username")] | ||
public string Username; | ||
|
||
[JsonProperty("id")] | ||
public string Id; | ||
|
||
[JsonProperty("name")] | ||
public string Name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters