Adaptive.ReactiveTrader.Server.Host.TradeMapper.ToDto C# (CSharp) Method

ToDto() public static method

public static ToDto ( this t ) : TradeDto
t this
return Adaptive.ReactiveTrader.Contract.TradeDto
        public static TradeDto ToDto(this Trade t)
        {
            return new TradeDto
            {
                TradeId = t.TradeId,
                TraderName = t.TraderName,
                CurrencyPair = t.CurrencyPair,
                Notional = t.Notional,
                DealtCurrency = t.DealtCurrency,
                Direction = t.Direction,
                SpotRate = t.SpotRate,
                TradeDate = t.TradeDate,
                ValueDate = t.ValueDate,
                Status = t.Status
            };
        }
    }
TradeMapper