diff --git a/src/WebApiContrib.CollectionJson/Collection.cs b/src/WebApiContrib.CollectionJson/Collection.cs index 8060a66..f1bd108 100644 --- a/src/WebApiContrib.CollectionJson/Collection.cs +++ b/src/WebApiContrib.CollectionJson/Collection.cs @@ -19,46 +19,22 @@ public Collection() } [DataMember(Name="version")] - public string Version - { - get { return GetValue("Version"); } - set { SetValue("Version", value); } - } - + public string Version { get; set; } + [DataMember(Name = "href")] - public Uri Href - { - get { return GetValue("Href"); } - set { SetValue("Href", value); } - } + public Uri Href { get; set; } [DataMember(Name = "links")] - public IList Links - { - get { return GetValue>("Links"); } - private set { SetValue("Links", value); } - } - + public IList Links { get; private set; } + [DataMember(Name = "items")] - public IList Items - { - get { return GetValue>("Items"); } - private set { SetValue("Items", value); } - } + public IList Items { get; private set; } [DataMember(Name = "queries")] - public IList Queries - { - get { return GetValue>("Queries"); } - private set { SetValue("Queries", value); } - } - + public IList Queries { get; private set; } + [DataMember(Name = "template")] - public Template Template - { - get { return GetValue