Esempio n. 1
0
        public IDictionary <string, object> GetMarketOrdersInfo(Character character)
        {
            //ez van mashol is
            var orders = _marketOrderRepository.GetByCharacter(character).OrderBy(o => o.isSell).ToDictionary("i", o => o.ToDictionary());

            return(new Dictionary <string, object>
            {
                { k.items, orders },
                { k.maxBuyOrderCount, Market.GetMaxBuyOrderCount(character) },
                { k.maxSellOrderCount, Market.GetMaxSellOrderCount(character) },
            });
        }