当前位置: 首页>>代码示例>>C#>>正文


C# Client.MakeGetRequest方法代码示例

本文整理汇总了C#中Client.MakeGetRequest方法的典型用法代码示例。如果您正苦于以下问题:C# Client.MakeGetRequest方法的具体用法?C# Client.MakeGetRequest怎么用?C# Client.MakeGetRequest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Client的用法示例。


在下文中一共展示了Client.MakeGetRequest方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Get

 public static async Task<Subscription> Get(Client client, string id)
 {
     if (id == null) throw new ArgumentNullException("id");
     var item = (await client.MakeGetRequest<SubscriptionsResponse>(client.ConcatAccountPath(SubscriptionPath), null, id)).Subscriptions.First();
     item.Client = client;
     return item;
 }
开发者ID:dwimsey,项目名称:csharp-bandwidth-iris,代码行数:7,代码来源:Subscription.cs

示例2: Get

 public static async Task<Tn> Get(Client client, string number)
 {
     if (number == null) throw new ArgumentNullException("number");
     var item = await client.MakeGetRequest<Tn>(TnsPath, null, number);
     item.Client = client;
     return item;
 }
开发者ID:dwimsey,项目名称:csharp-bandwidth-iris,代码行数:7,代码来源:Tn.cs

示例3: Get

 public static async Task<Lidb> Get(Client client, string id)
 {
     if (id == null) throw new ArgumentNullException("id");
     var item = (await client.MakeGetRequest<Lidb>(client.ConcatAccountPath(LidbPath), null, id));
     item.Client = client;
     return item;
 }
开发者ID:dwimsey,项目名称:csharp-bandwidth-iris,代码行数:7,代码来源:Lidb.cs

示例4: GetNotes

 public static async Task<Note[]> GetNotes(Client client, string orderId)
 {
     return
         (await
             client.MakeGetRequest<Notes>(client.ConcatAccountPath(string.Format("{0}/{1}/notes", PortOutPath, orderId))))
             .List;
 }
开发者ID:dwimsey,项目名称:csharp-bandwidth-iris,代码行数:7,代码来源:ImportToAccount.cs

示例5: List

 public static async Task<Site[]> List(Client client)
 {
     var items = (await client.MakeGetRequest<SitesResponse>(client.ConcatAccountPath(SitePath))).Sites ?? new Site[0];
     foreach (var item in items)
     {
         item.Client = client;
     }
     return items;
 }
开发者ID:dwimsey,项目名称:csharp-bandwidth-iris,代码行数:9,代码来源:Site.cs

示例6: List

 public static async Task<Subscription[]> List(Client client, IDictionary<string, object> query = null )
 {
     var items = (await client.MakeGetRequest<SubscriptionsResponse>(client.ConcatAccountPath(SubscriptionPath), query)).Subscriptions ?? new Subscription[0];
     foreach (var item in items)
     {
         item.Client = client;
     }
     return items;
 }
开发者ID:dwimsey,项目名称:csharp-bandwidth-iris,代码行数:9,代码来源:Subscription.cs

示例7: List

 public async static Task<AvailableNpaNxx[]> List(Client client, IDictionary<string, object> query = null)
 {
     return (await client.MakeGetRequest<AvailableNpaNxxResult>(client.ConcatAccountPath(AvailableNpaNxxPath), query)).AvailableNpaNxxList;
 }
开发者ID:dwimsey,项目名称:csharp-bandwidth-iris,代码行数:4,代码来源:AvailableNpaNxx.cs

示例8: List

 public static async Task<OrderIdUserIdDate[]> List(Client client)
 {
     return (await client.MakeGetRequest<ResponseSelectWrapper>(client.ConcatAccountPath(LidbPath))).ListOrderIdUserIdDate ?? new OrderIdUserIdDate[0];
 }
开发者ID:dwimsey,项目名称:csharp-bandwidth-iris,代码行数:4,代码来源:Lidb.cs

示例9: List

 public async static Task<CoveredRateCenter[]> List(Client client, IDictionary<string, object> query = null)
 {
     var r = (await client.MakeGetRequest<CoveredRateCenters>(CoveredRateCenterPath, query));
     return r.CoveredRateCenter;
 }
开发者ID:dwimsey,项目名称:csharp-bandwidth-iris,代码行数:5,代码来源:CoveredRateCenter.cs

示例10: List

 public static async Task<OrderResult[]> List(Client client, IDictionary<string, object> query = null)
 {
     return (await client.MakeGetRequest<Orders>(client.ConcatAccountPath(OrderPath), query)).List;
 }
开发者ID:dwimsey,项目名称:csharp-bandwidth-iris,代码行数:4,代码来源:Order.cs

示例11: Get

 public static Task<OrderResult> Get(Client client, string id)
 {
     return client.MakeGetRequest<OrderResult>(client.ConcatAccountPath(OrderPath), null, id);
 }
开发者ID:dwimsey,项目名称:csharp-bandwidth-iris,代码行数:4,代码来源:Order.cs

示例12: List

 public async static Task<string[]> List(Client client, IDictionary<string, object> query = null)
 {
     var r = (await client.MakeGetRequest<DiscNumberResponse>(client.ConcatAccountPath(DiscNumberPath), query));
     return r.TelephoneNumbers.Numbers;
 }
开发者ID:dwimsey,项目名称:csharp-bandwidth-iris,代码行数:5,代码来源:DiscNumber.cs

示例13: List

 public static async Task<string[]> List(Client client, IDictionary<string, object> query = null)
 {
     return (await client.MakeGetRequest<InServiceNumberTns>(client.ConcatAccountPath(InServiceNumberPath), query)).TelephoneNumbers.Numbers;
 }
开发者ID:dwimsey,项目名称:csharp-bandwidth-iris,代码行数:4,代码来源:InServiceNumber.cs

示例14: GetTotals

 public static async Task<Quantity> GetTotals(Client client)
 {
     return (await client.MakeGetRequest<Quantity>(client.ConcatAccountPath(InServiceNumberPath) + "/totals"));
 }
开发者ID:dwimsey,项目名称:csharp-bandwidth-iris,代码行数:4,代码来源:InServiceNumber.cs

示例15: List

 public async static Task<City[]> List(Client client, IDictionary<string, object> query)
 {
     return (await client.MakeGetRequest<CityResponse>(CityCenterPath, query)).Cities;
 }
开发者ID:dwimsey,项目名称:csharp-bandwidth-iris,代码行数:4,代码来源:City.cs


注:本文中的Client.MakeGetRequest方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。