public static MarketHistoryAggregateEntry Map(CrestMarketHistory.MarketHistoryEntry source, MarketHistoryAggregateEntry target) { target.Volume = source.Volume; target.OrderCount = source.OrderCount; target.LowPrice = source.LowPrice; target.HighPrice = source.HighPrice; target.AvgPrice = source.AvgPrice; target.Date = source.Date; return(target); }
public static MarketHistoryEntry Create(int typeId, int regionId, CrestMarketHistory.MarketHistoryEntry history) { var entry = new MarketHistoryEntry(); entry.TypeId = typeId; entry.RegionId = regionId; entry.AvgPrice = history.AvgPrice; entry.Date = history.Date; entry.HighPrice = history.HighPrice; entry.LowPrice = history.LowPrice; entry.OrderCount = history.OrderCount; entry.Volume = history.Volume; return(entry); }
private static EveData.MarketData.MarketHistoryEntry map(int typeId, int regionId, CrestMarketHistory.MarketHistoryEntry source) { var target = new EveData.MarketData.MarketHistoryEntry(); target.TypeId = typeId; target.RegionId = regionId; target.AvgPrice = source.AvgPrice; target.HighPrice = source.HighPrice; target.LowPrice = source.LowPrice; target.Volume = source.Volume; target.OrderCount = source.OrderCount; target.Date = source.Date; return(target); }