示例#1
0
 /// <summary>
 /// A collection of items that describe navigational links, distinct from entity relationships. (Optional)
 /// Link items should contain a rel attribute to describe the relationship and an href attribute to point to the target URI.
 /// Entities should include a link rel to self. In JSON Siren, this is represented as "links": [{ "rel": ["self"], "href": "http://api.x.io/orders/1234" }].
 /// </summary>
 /// <param name="link"></param>
 public void AddLink(SirenLink link)
 {
     this.links.Add(link);
 }
示例#2
0
 /// <summary>
 /// A collection of items that describe navigational links, distinct from entity relationships. (Optional)
 /// Link items should contain a rel attribute to describe the relationship and an href attribute to point to the target URI. 
 /// Entities should include a link rel to self. In JSON Siren, this is represented as "links": [{ "rel": ["self"], "href": "http://api.x.io/orders/1234" }].
 /// </summary>
 /// <param name="link"></param>
 public void AddLink(SirenLink link)
 {
     this.links.Add(link);
 }