Ejemplo n.º 1
0
 /// <summary>
 /// Gets this instance.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <returns></returns>
 public Task <HyperList <T> > Get(HyperClient client)
 {
     return(client.Get <HyperList <T> >(Href));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the specified id.
 /// </summary>
 /// <param name="id">The id.</param>
 /// <param name="client">The client.</param>
 /// <returns></returns>
 public Task <T> Get(string id, HyperClient client)
 {
     return(client.Get <T>(new Uri(new Uri(Href), id).ToString()));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Gets the specified item.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="item">The item.</param>
 /// <param name="client">The client.</param>
 /// <returns></returns>
 public static Task <T> Get <T>(this T item, HyperClient client) where T : IHyperEntity <T>
 {
     return(client.Get <T>(item.Self.Href));
 }