Esempio n. 1
0
 public HttpResponse <ShoppingCart> GetShoppingCart(ShoppingListTokenResponse shoppingListToken)
 {
     return(new ApiHttpClient().GetRequest <ShoppingCart>(ApiUrls.ShoppingListGet, shoppingListToken.Access_token));
 }
Esempio n. 2
0
 public HttpResponse <OkResponse> CreateShoppingItem(ShoppingListTokenResponse shoppingListToken, ShoppingItem requestModel)
 {
     return(new ApiHttpClient().PostRequest <OkResponse>(ApiUrls.CreateShoppingItem, shoppingListToken.Access_token, requestModel));
 }
Esempio n. 3
0
 public HttpResponse <ShoppingItem> UpdateShoppingItem(ShoppingListTokenResponse shoppingListToken, ShoppingItem requestModel)
 {
     return(new ApiHttpClient().PutRequest <ShoppingItem>(ApiUrls.UpdateShoppingItem, shoppingListToken.Access_token, requestModel));
 }
Esempio n. 4
0
        public HttpResponse <OkResponse> DeleteShoppingItem(ShoppingListTokenResponse shoppingListToken, string shoppingItemId)
        {
            var deleteShoppingItemUri = string.Format(ApiUrls.DeleteShoppingItem, shoppingItemId);

            return(new ApiHttpClient().DeleteRequest <OkResponse>(deleteShoppingItemUri, shoppingListToken.Access_token));
        }
Esempio n. 5
0
        public HttpResponse <ShoppingItem> GetShoppingListByProductName(ShoppingListTokenResponse shoppingListToken, string productName)
        {
            var getByProductNameUri = string.Format(ApiUrls.ShoppingListGetByProductName, productName);

            return(new ApiHttpClient().GetRequest <ShoppingItem>(getByProductNameUri, shoppingListToken.Access_token));
        }