public BenevolenceTransferInfo(decimal amount, decimal fee, WalletDirection direction, string remark)
 {
     Amount    = amount;
     Fee       = fee;
     Direction = direction;
     Remark    = remark;
 }
예제 #2
0
파일: db.cs 프로젝트: djpnewton/xchwallet
 public IEnumerable <FiatWalletTx> TxsGet(WalletDirection direction, bool completed)
 {
     if (completed)
     {
         return(WalletTxs.Where(t => t.Direction == direction && t.BankTxId != null));
     }
     else
     {
         return(WalletTxs.Where(t => t.Direction == direction && t.BankTxId == null));
     }
 }
예제 #3
0
 public CreateCashTransferCommand(Guid id,
                                  Guid walletId,
                                  string number,
                                  CashTransferType type,
                                  CashTransferStatus status,
                                  decimal amount,
                                  decimal fee,
                                  WalletDirection direction,
                                  string remark) : base(id)
 {
     WalletId  = walletId;
     Number    = number;
     Type      = type;
     Status    = status;
     Amount    = amount;
     Fee       = fee;
     Direction = direction;
     Remark    = remark;
 }
예제 #4
0
파일: db.cs 프로젝트: eoliveros/xchwallet
 public WalletTx TxGet(WalletAddr addr, ChainTx tx, WalletDirection dir)
 {
     return(WalletTxs.SingleOrDefault(t => t.WalletAddrId == addr.Id && t.ChainTxId == tx.Id && t.Direction == dir));
 }