Пример #1
0
        public void SetFrozenForEnergy(long frozen_balance, long expire_time)
        {
            Account.Types.Frozen frozen = new Account.Types.Frozen();
            frozen.FrozenBalance = frozen_balance;
            frozen.ExpireTime    = expire_time;

            AccountResource.FrozenBalanceForEnergy = frozen;
        }
Пример #2
0
        public void SetFrozen(long frozen_balance, long expire_time)
        {
            Account.Types.Frozen frozen = new Account.Types.Frozen();
            frozen.FrozenBalance = frozen_balance;
            frozen.ExpireTime    = expire_time;

            this.account.Frozen.Add(frozen);
        }
Пример #3
0
        public void SetFrozenForBandwidth(long frozen_balance, long expire_time)
        {
            Account.Types.Frozen frozen = new Account.Types.Frozen();
            frozen.FrozenBalance = frozen_balance;
            frozen.ExpireTime    = expire_time;

            if (FrozenCount == 0)
            {
                this.account.Frozen.Add(frozen);
            }
            else
            {
                this.account.Frozen[0] = frozen;
            }
        }