Пример #1
0
        public void ShopBuy(string shop_ikey, Roar.Callback <WebObjects.Shop.BuyResponse> cb)
        {
            var shop_item = dataStore.shop.Get(shop_ikey);

            // Make the call if the item is in the shop
            if (shop_item == null)
            {
                logger.DebugLog("[roar] -- Cannot find to purchase: " + shop_ikey);
                return;
            }
            logger.DebugLog("trying to buy me a : " + shop_item.ikey + ":" + shop_item.label);

            WebObjects.Shop.BuyArguments args = new Roar.WebObjects.Shop.BuyArguments();
            args.shop_item_ikey = shop_item.ikey;

            shopActions.buy(args, new ShopBuyCallback(cb, this, shop_item.ikey));
        }
Пример #2
0
 public void buy(Roar.WebObjects.Shop.BuyArguments args, ZWebAPI.Callback <Roar.WebObjects.Shop.BuyResponse> cb)
 {
     api.MakeCall("shop/buy", args.ToHashtable(), new CallbackBridge <Roar.WebObjects.Shop.BuyResponse>(cb, buy_response_parser), true);
 }