/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <USCPEApiDTOCommonBuilding> Get1Async(this IBuildings operations, int id, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.Get1WithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='type'> /// </param> /// <param name='isUscOwned'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <USCPEApiDTOCommonBuilding> > GetAsync(this IBuildings operations, string type = default(string), bool?isUscOwned = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(type, isUscOwned, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> public static USCPEApiDTOCommonBuilding Get1(this IBuildings operations, int id) { return(operations.Get1Async(id).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='type'> /// </param> /// <param name='isUscOwned'> /// </param> public static IList <USCPEApiDTOCommonBuilding> Get(this IBuildings operations, string type = default(string), bool?isUscOwned = default(bool?)) { return(operations.GetAsync(type, isUscOwned).GetAwaiter().GetResult()); }