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; }
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); }
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; } }