Пример #1
0
        public PaymentCardModel()
        {
            PaymentCard = new PaymentCard();
            Bill        = new Bill();

            PaymentCardTypes = new List <PaymentCardType>()
            {
                new PaymentCardType()
                {
                    Id = 1, Name = "MasterCard"
                },
                new PaymentCardType()
                {
                    Id = 2, Name = "Maestro"
                },
                new PaymentCardType()
                {
                    Id = 3, Name = "Visa"
                },
                new PaymentCardType()
                {
                    Id = 4, Name = "Visa Electron"
                }
            };
            Currency = new CurrencyMoney();
        }
 public UtilityModel()
 {
     Utilities = new List <Utility>();
     Units     = new List <Unit>();
     Utility   = new Utility();
     Unit      = new Unit();
     Currency  = new CurrencyMoney();
     MeterQty  = 0;
 }
Пример #3
0
 public CustomerModel()
 {
     Customers     = new List <Customer>();
     AddressModel  = new AddressModel();
     Meters        = new List <Meter>();
     Customer      = new Customer();
     CustomerTypes = new List <CustomerType>();
     Currency      = new CurrencyMoney();
     TotalCount    = 0;
 }
Пример #4
0
 public BillModel()
 {
     Bill                    = new Bill();
     Bills                   = new List <Bill>();
     CustomerModel           = new CustomerModel();
     Currency                = new CurrencyMoney();
     UtilitySupplierModel    = new UtilitySupplierModel();
     UtilityChargesChartData = new List <ChartData>();
     Temperatures            = new List <TemperatureModel>();
 }
Пример #5
0
    public void MachineSellerSellItem(ItemInfo itemInfo, int count, Vector3 position)
    {
        if (save.itemsCostMoney)
        {
            long value = itemInfo.value * count;
            save.money += value;

            moneyChanged.Invoke();

            CurrencyMoney currency = ObjectPooler.instance.Get <CurrencyMoney>();
            currency.Initialize(position);

            CurrencyEvent currencyEvent = new CurrencyEvent(GAResourceFlowType.Source, CurrencyType.Money, CurrencyEventType.MachineSellerRevenue, itemInfo);
            Analytics.instance.NewCurrencyEvent(currencyEvent, value);
        }
    }
Пример #6
0
 public CalculatorItemModel()
 {
     Utilities = new List <Utility>();
     Currency  = new CurrencyMoney();
 }