Пример #1
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked {
                                #line 12 "/my-component/src/shoppingcart/ShoppingCart.hx"
                switch (hash)
                {
                case 2029246814:
                {
                                                #line 12 "/my-component/src/shoppingcart/ShoppingCart.hx"
                    this.logic = ((global::shoppingcart.ShoppingCartLogic)(@value));
                                                #line 12 "/my-component/src/shoppingcart/ShoppingCart.hx"
                    return(@value);
                }


                case 858513194:
                {
                                                #line 12 "/my-component/src/shoppingcart/ShoppingCart.hx"
                    this.maglev = ((global::maglev.MagLev)(@value));
                                                #line 12 "/my-component/src/shoppingcart/ShoppingCart.hx"
                    return(@value);
                }


                default:
                {
                                                #line 12 "/my-component/src/shoppingcart/ShoppingCart.hx"
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
                        #line default
        }
 public virtual void UpdateQty(string cartId, int idx, int qty, global::haxe.lang.Function callback)
 {
                 #line 48 "/my-component/src/shoppingcart/ShoppingCartLogic.hx"
     global::shoppingcart.ShoppingCartLogic _gthis = this;
     this.itemRepo.FindByCartIdAndIdx(cartId, idx, new global::shoppingcart.ShoppingCartLogic_UpdateQty_49__Fun(qty, callback, _gthis));
 }
 public ShoppingCartLogic_UpdateQty_49__Fun(int qty, global::haxe.lang.Function callback, global::shoppingcart.ShoppingCartLogic _gthis) : base(1, 0)
 {
                 #line 49 "/my-component/src/shoppingcart/ShoppingCartLogic.hx"
     this.qty = qty;
                 #line 49 "/my-component/src/shoppingcart/ShoppingCartLogic.hx"
     this.callback = callback;
                 #line 49 "/my-component/src/shoppingcart/ShoppingCartLogic.hx"
     this._gthis = _gthis;
 }
 protected static void __hx_ctor_shoppingcart_ShoppingCartLogic(global::shoppingcart.ShoppingCartLogic __hx_this, global::shoppingcart.CartRepository cartRepo, global::shoppingcart.ItemRepository itemRepo)
 {
                 #line 7 "/my-component/src/shoppingcart/ShoppingCartLogic.hx"
     __hx_this.cartRepo = cartRepo;
     __hx_this.itemRepo = itemRepo;
 }