public BenevolenceTransferInfo(decimal amount, decimal fee, WalletDirection direction, string remark) { Amount = amount; Fee = fee; Direction = direction; Remark = remark; }
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)); } }
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; }
public WalletTx TxGet(WalletAddr addr, ChainTx tx, WalletDirection dir) { return(WalletTxs.SingleOrDefault(t => t.WalletAddrId == addr.Id && t.ChainTxId == tx.Id && t.Direction == dir)); }