コード例 #1
0
ファイル: Client.cs プロジェクト: stalehd/LassieSharp
 /// <summary>
 /// Updates the gateway async.
 /// </summary>
 /// <returns>The gateway async.</returns>
 /// <param name="updated">Updated.</param>
 public async Task <Gateway> UpdateGatewayAsync(Gateway updated)
 {
     return(await Update(updated, "/gateways/" + updated.GatewayEUI));
 }
コード例 #2
0
ファイル: Client.cs プロジェクト: stalehd/LassieSharp
 /// <summary>
 /// Creates the gateway async.
 /// </summary>
 /// <returns>The gateway async.</returns>
 /// <param name="template">Template.</param>
 public async Task <Gateway> CreateGatewayAsync(Gateway template)
 {
     return(await Create(template, "/gateways"));
 }