{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/Docker.DotNet/issues/207","repository_url":"https://api.github.com/repos/Microsoft/Docker.DotNet","labels_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/issues/207/comments","events_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/issues/207/events","html_url":"https://github.com/Microsoft/Docker.DotNet/pull/207","id":231328292,"number":207,"title":"Timespan for Docker classes","user":{"login":"orthros","id":7820716,"avatar_url":"https://avatars2.githubusercontent.com/u/7820716?v=3","gravatar_id":"","url":"https://api.github.com/users/orthros","html_url":"https://github.com/orthros","followers_url":"https://api.github.com/users/orthros/followers","following_url":"https://api.github.com/users/orthros/following{/other_user}","gists_url":"https://api.github.com/users/orthros/gists{/gist_id}","starred_url":"https://api.github.com/users/orthros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orthros/subscriptions","organizations_url":"https://api.github.com/users/orthros/orgs","repos_url":"https://api.github.com/users/orthros/repos","events_url":"https://api.github.com/users/orthros/events{/privacy}","received_events_url":"https://api.github.com/users/orthros/received_events","type":"User","site_admin":false},"labels":[{"id":404706166,"url":"https://api.github.com/repos/Microsoft/Docker.DotNet/labels/cla-already-signed","name":"cla-already-signed","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-25T12:38:55Z","updated_at":"2017-07-06T16:06:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Microsoft/Docker.DotNet/pulls/207","html_url":"https://github.com/Microsoft/Docker.DotNet/pull/207","diff_url":"https://github.com/Microsoft/Docker.DotNet/pull/207.diff","patch_url":"https://github.com/Microsoft/Docker.DotNet/pull/207.patch"},"body":"For Issue #98 Added support for TimeSpan\r\n\r\nspecgen now has a second map[] that will map a ```CSType``` to ```CSAttribute```, which are applied in ```reflectTypeMembers```\r\n\r\nAlso ```calcUsings``` will also take into account the namespaces of attributes attached to the Properties in a class\r\n\r\nOn the generated classes, now decorate the properties of type ```Timespan``` with the ```[JsonConverter]``` attribute \r\n\r\nThis is an alternative to #205, which required custom attributes and a change to the ContractResolver for the Json serializer.\r\n\r\nHere is a sample of the generated code\r\n```csharp\r\n[DataContract]\r\npublic class HealthConfig // (container.HealthConfig)\r\n{\r\n    [DataMember(Name = \"Test\", EmitDefaultValue = false)]\r\n    public IList<string> Test { get; set; }\r\n\r\n    [DataMember(Name = \"Interval\", EmitDefaultValue = false)]\r\n    [JsonConverter(typeof(TimeSpanNanosecondsConverter))]\r\n    public TimeSpan Interval { get; set; }\r\n\r\n    [DataMember(Name = \"Timeout\", EmitDefaultValue = false)]\r\n    [JsonConverter(typeof(TimeSpanSecondsConverter))]\r\n    public TimeSpan Timeout { get; set; }\r\n\r\n    [DataMember(Name = \"Retries\", EmitDefaultValue = false)]\r\n    public long Retries { get; set; }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/Docker.DotNet/issues/comments/313442123","html_url":"https://github.com/Microsoft/Docker.DotNet/pull/207#issuecomment-313442123","issue_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/issues/207","id":313442123,"user":{"login":"jterry75","id":5858142,"avatar_url":"https://avatars2.githubusercontent.com/u/5858142?v=3","gravatar_id":"","url":"https://api.github.com/users/jterry75","html_url":"https://github.com/jterry75","followers_url":"https://api.github.com/users/jterry75/followers","following_url":"https://api.github.com/users/jterry75/following{/other_user}","gists_url":"https://api.github.com/users/jterry75/gists{/gist_id}","starred_url":"https://api.github.com/users/jterry75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jterry75/subscriptions","organizations_url":"https://api.github.com/users/jterry75/orgs","repos_url":"https://api.github.com/users/jterry75/repos","events_url":"https://api.github.com/users/jterry75/events{/privacy}","received_events_url":"https://api.github.com/users/jterry75/received_events","type":"User","site_admin":false},"created_at":"2017-07-06T16:06:29Z","updated_at":"2017-07-06T16:06:29Z","body":"Cool this looks great! @swernli you good with this?"}}
{"actor":{"display_login":"jterry75"}}