Beispiel #1
0
        /// <summary>
        /// Get catalog entry prices of a catalog item
        /// </summary>
        /// <param name="catalogKey">catalog Key</param>
        /// <returns>list of <c>IPriceValue</c></returns>
        public IEnumerable <IPriceValue> GetCatalogEntryPrices(CatalogKey catalogKey)
        {
            List <IPriceValue> prices = new List <IPriceValue>();

            prices.Add(XPriceParser.GetPrice(catalogKey, MarketId.Empty, new Currency("GBP")));
            return(prices);
        }
Beispiel #2
0
        /// <summary>
        /// get prices
        /// </summary>
        /// <param name="market">market id</param>
        /// <param name="validOn">valid on</param>
        /// <param name="catalogKey">catalog key</param>
        /// <param name="filter">price filter</param>
        /// <returns>list of <c>IPriceValue</c></returns>
        public IEnumerable <IPriceValue> GetPrices(MarketId market, DateTime validOn, CatalogKey catalogKey, PriceFilter filter)
        {
            List <IPriceValue> prices = new List <IPriceValue>();

            prices.Add(XPriceParser.GetPrice(catalogKey, MarketId.Empty, new Currency("GBP")));
            return(prices);
        }
Beispiel #3
0
        /// <summary>
        /// Get prices
        /// </summary>
        /// <param name="market">market id</param>
        /// <param name="validOn">valid on</param>
        /// <param name="catalogKeysAndQuantities">catalog keys and quantities</param>
        /// <param name="filter">price filter</param>
        /// <returns>list of <c>IPriceValue</c></returns>
        public IEnumerable <IPriceValue> GetPrices(MarketId market, DateTime validOn, IEnumerable <CatalogKeyAndQuantity> catalogKeysAndQuantities, PriceFilter filter)
        {
            List <IPriceValue> prices = new List <IPriceValue>();

            foreach (var key in catalogKeysAndQuantities)
            {
                prices.Add(XPriceParser.GetPrice(key.CatalogKey, MarketId.Empty, new Currency("GBP")));
            }
            return(prices);
        }
Beispiel #4
0
        /// <summary>
        /// Get Catalog Entry Prices
        /// </summary>
        /// <param name="catalogKeys">catalog Keys</param>
        /// <returns>list of <c>IPriceValue</c></returns>
        public IEnumerable <IPriceValue> GetCatalogEntryPrices(IEnumerable <CatalogKey> catalogKeys)
        {
            //ToDo:Cache
            List <IPriceValue> prices = new List <IPriceValue>();

            foreach (var key in catalogKeys)
            {
                prices.Add(XPriceParser.GetPrice(key, MarketId.Empty, new Currency("GBP")));
            }
            return(prices);
        }
Beispiel #5
0
 /// <summary>
 /// Get Default price
 /// </summary>
 /// <param name="market">market id</param>
 /// <param name="validOn"> valid on</param>
 /// <param name="catalogKey">catalog key</param>
 /// <param name="currency">currency</param>
 /// <returns>returns <c>IPriceValue</c></returns>
 public IPriceValue GetDefaultPrice(MarketId market, DateTime validOn, CatalogKey catalogKey, Currency currency)
 {
     return(XPriceParser.GetPrice(catalogKey, market, currency));
 }