55
66namespace WebApiContrib . CollectionJson
77{
8- public class Collection
8+ public class Collection : ExtensibleObject
99 {
1010 public Collection ( )
1111 {
@@ -15,19 +15,41 @@ public Collection()
1515 Template = new Template ( ) ;
1616 }
1717
18- public string Version { get ; set ; }
19- public Uri Href { get ; set ; }
20- public IList < Link > Links { get ; private set ; }
21- public IList < Item > Items { get ; private set ; }
22- public IList < Query > Queries { get ; private set ; }
23- public Template Template { get ; private set ; }
24- }
25-
26-
18+ public string Version
19+ {
20+ get { return GetValue < string > ( "Version" ) ; }
21+ set { SetValue ( "Version" , value ) ; }
22+ }
2723
24+ public Uri Href
25+ {
26+ get { return GetValue < Uri > ( "Href" ) ; }
27+ set { SetValue ( "Href" , value ) ; }
28+ }
2829
30+ public IList < Link > Links
31+ {
32+ get { return GetValue < IList < Link > > ( "Links" ) ; }
33+ private set { SetValue ( "Links" , value ) ; }
34+ }
2935
36+ public IList < Item > Items
37+ {
38+ get { return GetValue < IList < Item > > ( "Items" ) ; }
39+ private set { SetValue ( "Items" , value ) ; }
40+ }
3041
42+ public IList < Query > Queries
43+ {
44+ get { return GetValue < IList < Query > > ( "Query" ) ; }
45+ private set { SetValue ( "Query" , value ) ; }
46+ }
3147
48+ public Template Template
49+ {
50+ get { return GetValue < Template > ( "Template" ) ; }
51+ set { SetValue ( "Template" , value ) ; }
52+ }
53+ }
3254
3355}
0 commit comments