コード例 #1
0
ファイル: HyperListLink.cs プロジェクト: anthrax3/Hyper-1
 /// <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));
 }
コード例 #2
0
ファイル: HyperListLink.cs プロジェクト: anthrax3/Hyper-1
 /// <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()));
 }
コード例 #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));
 }