예제 #1
0
 public static ShoppingCartItem FromSnapshot(ShoppingCartItemSnapshot snapshot)
 {
     return new ShoppingCartItem(snapshot);
 }
예제 #2
0
            private ShoppingCartItem(ShoppingCartItemSnapshot snapshot)
            {
                this.itemId = snapshot.ItemId;
                this.qty = snapshot.Qty;
                this.price = snapshot.Price;
                this.amountAfterDiscount = snapshot.AmountAfterDiscount;

                itemCode = snapshot.ItemCode;
                itemName = snapshot.ItemName;
                unitCode = snapshot.UnitCode;
            }