Exemplo n.º 1
0
 public HttpResponse <ShoppingCart> GetShoppingCart(ShoppingListTokenResponse shoppingListToken)
 {
     return(new ApiHttpClient().GetRequest <ShoppingCart>(ApiUrls.ShoppingListGet, shoppingListToken.Access_token));
 }
Exemplo n.º 2
0
 public HttpResponse <OkResponse> CreateShoppingItem(ShoppingListTokenResponse shoppingListToken, ShoppingItem requestModel)
 {
     return(new ApiHttpClient().PostRequest <OkResponse>(ApiUrls.CreateShoppingItem, shoppingListToken.Access_token, requestModel));
 }
Exemplo n.º 3
0
 public HttpResponse <ShoppingItem> UpdateShoppingItem(ShoppingListTokenResponse shoppingListToken, ShoppingItem requestModel)
 {
     return(new ApiHttpClient().PutRequest <ShoppingItem>(ApiUrls.UpdateShoppingItem, shoppingListToken.Access_token, requestModel));
 }
Exemplo 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));
        }
Exemplo 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));
        }