Exemple #1
0
 /// <summary>
 /// Create new shopper
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='shopperName'>
 /// Shopper name
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> CreateNewShopperAsync(this IShoppingListAPI operations, ShopperNameDto shopperName = default(ShopperNameDto), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateNewShopperWithHttpMessagesAsync(shopperName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <summary>
 /// Create new shopping list item with request type POST
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='shopperName'>
 /// Shopper name
 /// </param>
 /// <param name='title'>
 /// Shopping list item title
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> PostShoppingListItemAsync(this IShoppingListAPI operations, string shopperName, ShoppingListTitleDto title = default(ShoppingListTitleDto), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PostShoppingListItemWithHttpMessagesAsync(shopperName, title, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #3
0
 /// <summary>
 /// Get all shopping list items
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='shopperName'>
 /// Shopper name
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> GetAllShoppingListItemsAsync(this IShoppingListAPI operations, string shopperName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetAllShoppingListItemsWithHttpMessagesAsync(shopperName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #4
0
 /// <summary>
 /// Update shopping list item in-cart value
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='shoppingListItemId'>
 /// Shopping list item identifier
 /// </param>
 /// <param name='pending'>
 /// New shopping list item pending value
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> UpdateShoppingListItemPendingValueAsync(this IShoppingListAPI operations, System.Guid shoppingListItemId, bool pending, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateShoppingListItemPendingValueWithHttpMessagesAsync(shoppingListItemId, pending, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #5
0
 /// <summary>
 /// Get shopping list item
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='shoppingListItemId'>
 /// Shopping list item identifier
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> GetShoppingListItemAsync(this IShoppingListAPI operations, System.Guid shoppingListItemId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetShoppingListItemWithHttpMessagesAsync(shoppingListItemId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #6
0
 /// <summary>
 /// Create new shopping list item with request type POST
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='shopperName'>
 /// Shopper name
 /// </param>
 /// <param name='title'>
 /// Shopping list item title
 /// </param>
 public static object PostShoppingListItem(this IShoppingListAPI operations, string shopperName, ShoppingListTitleDto title = default(ShoppingListTitleDto))
 {
     return(operations.PostShoppingListItemAsync(shopperName, title).GetAwaiter().GetResult());
 }
Exemple #7
0
 /// <summary>
 /// Create new shopper
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='shopperName'>
 /// Shopper name
 /// </param>
 public static object CreateNewShopper(this IShoppingListAPI operations, ShopperNameDto shopperName = default(ShopperNameDto))
 {
     return(operations.CreateNewShopperAsync(shopperName).GetAwaiter().GetResult());
 }
Exemple #8
0
 /// <summary>
 /// Delete all unpending shopping list items
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='shopperName'>
 /// Shopper name
 /// </param>
 public static object DeleteAllUnpendingShoppingListItems(this IShoppingListAPI operations, string shopperName)
 {
     return(operations.DeleteAllUnpendingShoppingListItemsAsync(shopperName).GetAwaiter().GetResult());
 }
Exemple #9
0
 /// <summary>
 /// Update shopping list item in-cart value
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='shoppingListItemId'>
 /// Shopping list item identifier
 /// </param>
 /// <param name='pending'>
 /// New shopping list item pending value
 /// </param>
 public static object UpdateShoppingListItemPendingValue(this IShoppingListAPI operations, System.Guid shoppingListItemId, bool pending)
 {
     return(operations.UpdateShoppingListItemPendingValueAsync(shoppingListItemId, pending).GetAwaiter().GetResult());
 }
Exemple #10
0
 /// <summary>
 /// Create new shopping list item with request type PUT
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='shopperName'>
 /// Shopper name
 /// </param>
 /// <param name='title'>
 /// Shopping list item title
 /// </param>
 public static object SetShoppingListItem(this IShoppingListAPI operations, string shopperName, string title)
 {
     return(operations.SetShoppingListItemAsync(shopperName, title).GetAwaiter().GetResult());
 }
Exemple #11
0
 /// <summary>
 /// Delete shopping list item
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='shoppingListItemId'>
 /// Shopping list item identifier
 /// </param>
 public static object DeleteShoppingListItem(this IShoppingListAPI operations, System.Guid shoppingListItemId)
 {
     return(operations.DeleteShoppingListItemAsync(shoppingListItemId).GetAwaiter().GetResult());
 }