public EmbeddedResource WithFirstLink(Link link) { LinksObjects.Add(new LinkObject(LinkRelations.First) { Links = new List <Link> { link } }); return(this); }
public EmbeddedResource WithLinkObject(string relation, string href, string httpVerb, bool?templated = null, string name = "", string type = "", string deprecation = "") { LinksObjects.Add(new LinkObject(relation) { Links = new List <Link> { new Link(href, httpVerb, templated, name, type, deprecation) } }); return(this); }
public EmbeddedResource WithLinkObject(string relation, Link link) { LinksObjects.Add(new LinkObject(relation) { Links = new List <Link> { link } }); return(this); }
public EmbeddedResource WithPreviousLink(Link link) { LinksObjects.Add(new LinkObject(LinkRelations.Previous) { Links = new List <Link> { link } }); return(this); }
public EmbeddedResource WithCuriLink(string name, string href) { if (href.IndexOf(HREF_TEMPLATE) == -1) { href += HREF_TEMPLATE; } LinksObjects.Add(new LinkObject(LinkRelations.Curries) { Links = new List <Link> { Link.New(href, true, name) } }); return(this); }
public EmbeddedResource WithLinkObject(LinkObject linkObject) { LinksObjects.Add(linkObject); return(this); }