示例#1
0
        public Task TestIntegrationAsync()
        {
            var callback = new RetrofitCallbackAsync <Java.Lang.Void>();

            TestIntegration(callback);
            return(callback.Task);
        }
示例#2
0
        public Task <Checkout> UpdateCheckoutAsync(Checkout checkout)
        {
            var callback = new RetrofitCallbackAsync <Checkout>();

            UpdateCheckout(checkout, callback);
            return(callback.Task);
        }
示例#3
0
        public Task <Checkout> RemoveProductReservationsFromCheckoutAsync(Checkout checkout)
        {
            var callback = new RetrofitCallbackAsync <Checkout>();

            RemoveProductReservationsFromCheckout(checkout, callback);
            return(callback.Task);
        }
示例#4
0
        public Task <Checkout> StoreCreditCardAsync(CreditCard card, Checkout checkout)
        {
            var callback = new RetrofitCallbackAsync <Checkout>();

            StoreCreditCard(card, checkout, callback);
            return(callback.Task);
        }
示例#5
0
        public Task <Shop> GetShopAsync()
        {
            var callback = new RetrofitCallbackAsync <Shop>();

            GetShop(callback);
            return(callback.Task);
        }
示例#6
0
        public Task <Checkout> RemoveGiftCardAsync(GiftCard giftCard, Checkout checkout)
        {
            var callback = new RetrofitCallbackAsync <Checkout>();

            RemoveGiftCard(giftCard, checkout, callback);
            return(callback.Task);
        }
示例#7
0
        public Task <IEnumerable <Product> > GetProductsAsync(int page, string collectionId, Collection.SortOrder sortOrder)
        {
            var callback = new RetrofitCallbackAsync <JavaList <Product>, IEnumerable <Product> >(data => data);

            GetProducts(page, collectionId, sortOrder, callback);
            return(callback.Task);
        }
示例#8
0
        public Task <IEnumerable <ShippingRate> > GetShippingRatesAsync(string checkoutToken)
        {
            var callback = new RetrofitCallbackAsync <JavaList <ShippingRate>, IEnumerable <ShippingRate> >(data => data);

            GetShippingRates(checkoutToken, callback);
            return(callback.Task);
        }
示例#9
0
        public Task <IEnumerable <Product> > GetProductPageAsync(int page)
        {
            var callback = new RetrofitCallbackAsync <JavaList <Product>, IEnumerable <Product> >(data => data);

            GetProductPage(page, callback);
            return(callback.Task);
        }
示例#10
0
        public Task <IEnumerable <Product> > GetProductsAsync(IList <string> productIds)
        {
            var callback = new RetrofitCallbackAsync <JavaList <Product>, IEnumerable <Product> >(data => data);

            GetProducts(productIds, callback);
            return(callback.Task);
        }
示例#11
0
        public Task <Product> GetProductAsync(string productId)
        {
            var callback = new RetrofitCallbackAsync <Product>();

            GetProduct(productId, callback);
            return(callback.Task);
        }
示例#12
0
        public Task <IEnumerable <Collection> > GetCollectionsAsync()
        {
            var callback = new RetrofitCallbackAsync <JavaList <Collection>, IEnumerable <Collection> >(data => data);

            GetCollections(callback);
            return(callback.Task);
        }
示例#13
0
        public Task <bool> GetCheckoutCompletionStatusAsync(Checkout checkout)
        {
            var callback = new RetrofitCallbackAsync <Java.Lang.Boolean, bool>(data => data.BooleanValue());

            GetCheckoutCompletionStatus(checkout, callback);
            return(callback.Task);
        }
示例#14
0
        public Task <Checkout> GetCheckoutAsync(string checkoutToken)
        {
            var callback = new RetrofitCallbackAsync <Checkout>();

            GetCheckout(checkoutToken, callback);
            return(callback.Task);
        }
示例#15
0
        // async methods

        public Task <Checkout> ApplyGiftCardAsync(string giftCardCode, Checkout checkout)
        {
            var callback = new RetrofitCallbackAsync <Checkout>();

            ApplyGiftCard(giftCardCode, checkout, callback);
            return(callback.Task);
        }