diff --git a/csharp/getting-started/console-webapiclient/Repository.cs b/csharp/getting-started/console-webapiclient/Repository.cs index cd2d4e559dc..2dee1646717 100644 --- a/csharp/getting-started/console-webapiclient/Repository.cs +++ b/csharp/getting-started/console-webapiclient/Repository.cs @@ -1,10 +1,12 @@ -public record class Repository( +using System.Text.Json.Serialization; + +public record class Repository( string Name, string Description, - Uri GitHubHomeUrl, + [property: JsonPropertyName("html_url")] Uri GitHubHomeUrl, Uri Homepage, int Watchers, - DateTime LastPushUtc + [property: JsonPropertyName("pushed_at")] DateTime LastPushUtc ) { public DateTime LastPush => LastPushUtc.ToLocalTime();