예제 #1
0
        public static MarketHistoryEntry Create(EmdItemHistory.ItemHistoryEntry source)
        {
            var entry = new MarketHistoryEntry();

            entry.TypeId     = source.TypeId;
            entry.RegionId   = source.RegionId;
            entry.AvgPrice   = source.AvgPrice;
            entry.Date       = DateTime.Parse(source.Date);
            entry.HighPrice  = source.MaxPrice;
            entry.LowPrice   = source.MinPrice;
            entry.OrderCount = source.Orders;
            entry.Volume     = source.Volume;
            return(entry);
        }
예제 #2
0
        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);
        }
예제 #3
0
        public static MarketHistoryEntry Create(EveData.MarketData.MarketHistoryEntry source)
        {
            var entry = new MarketHistoryEntry();

            entry.TypeId     = source.TypeId;
            entry.RegionId   = source.RegionId;
            entry.AvgPrice   = source.AvgPrice;
            entry.Date       = source.Date;
            entry.HighPrice  = source.HighPrice;
            entry.LowPrice   = source.LowPrice;
            entry.OrderCount = source.OrderCount;
            entry.Volume     = source.Volume;
            return(entry);
        }