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);
        }
Пример #2
0
 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;
 }
Пример #3
0
 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());
        }
Пример #5
0
        internal void RefreshTotalAmount(FXMarket fXMarket, AssetMarket assetMarket)
        {
            IMarket iMkt = fXMarket;

            if (!Ccy.IsCcy())
            {
                iMkt = assetMarket;
            }
            _TotalAmount = _Amount * iMkt.GetQuote(_Ccy.CreateMarketInput(_TotalCcy));
        }
Пример #6
0
 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);
 }
Пример #7
0
 public static FxRate Create(Ccy ccy, decimal bid, decimal offer, DateTime timestamp)
 {
     return new FxRate(ccy, bid, offer, timestamp);
 }
Пример #8
0
 public override int GetHashCode() => Ccy.GetHashCode();