Пример #1
0
 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);
 }
Пример #2
0
 private void Handle(NewBenevolenceTransferAcceptedEvent evnt)
 {
     _benevolenceTransfers.Add(evnt.TransferId);
     _benevolence         = evnt.FinallyValue;
     _walletStatisticInfo = evnt.StatisticInfo;
 }
Пример #3
0
 private void Handle(NewShopCashTransferAcceptedEvent evnt)
 {
     _shopCashTransfers.Add(evnt.TransferId);
     _shopCash            = evnt.FinallyValue;
     _walletStatisticInfo = evnt.StatisticInfo;
 }
Пример #4
0
 private void Handle(StatisticInfoChangedEvent evnt)
 {
     _walletStatisticInfo = evnt.Info;
 }
Пример #5
0
 private void Handle(NewCashTransferAcceptedEvent evnt)
 {
     _cash = evnt.FinallyValue;
     _walletStatisticInfo = evnt.StatisticInfo;
 }