private void Handle(WalletCreatedEvent evnt) { _cash = 0; _lockedCash = 0; _benevolence = 0; _bankCards = new List <BankCard>(); _withdrawApplys = new List <WithdrawApply>(); _rechargeApplys = new List <RechargeApply>(); _cashTransfers = new HashSet <Guid>(); _benevolenceTransfers = new HashSet <Guid>(); _userId = evnt.UserId; _walletStatisticInfo = new WalletStatisticInfo(0, 0, 0, 0, 0, DateTime.Now); _withdrawStatisticInfo = new WithdrawStatisticInfo(0, 0, 0, DateTime.Now); }
private void Handle(NewBenevolenceTransferAcceptedEvent evnt) { _benevolenceTransfers.Add(evnt.TransferId); _benevolence = evnt.FinallyValue; _walletStatisticInfo = evnt.StatisticInfo; }
private void Handle(NewShopCashTransferAcceptedEvent evnt) { _shopCashTransfers.Add(evnt.TransferId); _shopCash = evnt.FinallyValue; _walletStatisticInfo = evnt.StatisticInfo; }
private void Handle(StatisticInfoChangedEvent evnt) { _walletStatisticInfo = evnt.Info; }
private void Handle(NewCashTransferAcceptedEvent evnt) { _cash = evnt.FinallyValue; _walletStatisticInfo = evnt.StatisticInfo; }