From 4243475469ebc9c0206dcb69f7d588d5e07ae79f Mon Sep 17 00:00:00 2001 From: Mark deVilliers Date: Fri, 9 May 2014 15:38:44 +0100 Subject: [PATCH] Wire up the file entity to get the properties from the api's file object Example returned - Api version - TeamCity 8.1.2 (build 29993) --- src/TeamCitySharp/DomainEntities/File.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/TeamCitySharp/DomainEntities/File.cs b/src/TeamCitySharp/DomainEntities/File.cs index 11a3b972..569a6dcd 100644 --- a/src/TeamCitySharp/DomainEntities/File.cs +++ b/src/TeamCitySharp/DomainEntities/File.cs @@ -1,7 +1,16 @@ -namespace TeamCitySharp.DomainEntities +using JsonFx.Json; + +namespace TeamCitySharp.DomainEntities { public class File { - public string relativefile { get; set; } + [JsonName("before-revision")] + public string BeforeRevision { get; set; } + [JsonName("after-revision")] + public string AfterRevision { get; set; } + [JsonName("relative-file")] + public string RelativeFile { get; set; } + + public string file { get; set; } } } \ No newline at end of file