public override int GetHashCode() { int hash = 1; if (OwnerCardId.Length != 0) { hash ^= OwnerCardId.GetHashCode(); } if (RecipientCardId.Length != 0) { hash ^= RecipientCardId.GetHashCode(); } if (TransactionSumm != 0) { hash ^= TransactionSumm.GetHashCode(); } if (Ccy.Length != 0) { hash ^= Ccy.GetHashCode(); } if (AditionalComment.Length != 0) { hash ^= AditionalComment.GetHashCode(); } if (TransactionType != global::TransactionAgent.TypeTransaction.Payment) { hash ^= TransactionType.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
private FxRate(Ccy ccy, decimal bid, decimal offer, DateTime timestamp) { this.Ccy = ccy; this.Bid = bid; this.PreviousOffer = offer; this.Offer = offer; this.Timestamp = timestamp; }
private FxRate(Ccy ccy, decimal bid, decimal offer, DateTime timestamp) { Ccy = ccy; Bid = bid; PreviousOffer = offer; Offer = offer; Timestamp = timestamp; }
public override string ToString() { var sb = new StringBuilder(); sb.AppendLine(QrData.GetOptional(Amt)); sb.AppendLine(Ccy.ToString()); sb.Append(QrData.GetOptional(ReqdExctnDt)); return(sb.ToString()); }
internal void RefreshTotalAmount(FXMarket fXMarket, AssetMarket assetMarket) { IMarket iMkt = fXMarket; if (!Ccy.IsCcy()) { iMkt = assetMarket; } _TotalAmount = _Amount * iMkt.GetQuote(_Ccy.CreateMarketInput(_TotalCcy)); }
public IAccount GetTotalAccount(FXMarket mkt, AssetMarket aMkt, ICcyAsset convCcy, string name, double?lastAmount) { _LastAmount = lastAmount; if (Ccy.IsCcy()) { RecalculateAmount(mkt, convCcy.Ccy); } else { RecalculateAmount(aMkt, convCcy.Ccy); } return(this); }
public static FxRate Create(Ccy ccy, decimal bid, decimal offer, DateTime timestamp) { return new FxRate(ccy, bid, offer, timestamp); }
public override int GetHashCode() => Ccy.GetHashCode();