private static IIndigoBreadcrumbCategory GetFeedGeneratorIndigoCategory(IFeedGeneratorIndigoCategoryService feedGeneratorIndigoCategoryService, FeedSectionType feedSectionType, List <int> browseCategories, string recordType) { return(feedGeneratorIndigoCategoryService.GetDefaultIndigoBreadcrumb(feedSectionType, browseCategories, recordType)); }
public IIndigoBreadcrumbCategory GetDefaultIndigoBreadcrumb(FeedSectionType feedSectionType, List <int> browseCategoryIds, string recordType = null) { return(_indigoBreadcrumbService.GetDefaultIndigoBreadcrumb(feedSectionType, browseCategoryIds, recordType)); }
public IIndigoBreadcrumbCategory GetTopLevelIndigoCategory(FeedSectionType feedSectionType, string recordType = null) { return(_indigoBreadcrumbDataRetriever.GetTopLevelIndigoCategory(feedSectionType, recordType)); }
private BrontePlaProductData GetBronteProductData(StringDictionary dict, IDataReader reader, FeedSectionType catalog) { var hasImage = true; if (!SkipHasImageCheck) { hasImage = (!dict.ContainsKey("hasImage")) || int.Parse(reader[dict["hasImage"]].ToString()) > 0; } var isCanonical = false; bool.TryParse(reader[dict["isCanonical"]].ToString(), out isCanonical); var isSensitiveProduct = dict.ContainsKey("isSensitiveProduct") && int.Parse(reader[dict["isSensitiveProduct"]].ToString()) > 0; decimal?adjustedPrice = null; decimal parsedSalePrice; if (!string.IsNullOrEmpty(dict["adjustedPrice"]) && decimal.TryParse(reader[dict["adjustedPrice"]].ToString(), out parsedSalePrice)) { adjustedPrice = parsedSalePrice; } var result = new BrontePlaProductData { AvailabilityID = dict.ContainsKey("gAvailability") ? (int)reader[dict["gAvailability"]] : 1, BISACBindingTypeID = dict.ContainsKey("bisacbindingtypeid") ? reader[dict["bisacbindingtypeid"]].ToString() : string.Empty, BrandName = dict.ContainsKey("gBrand") ? reader[dict["gBrand"]].ToString() : null, BrowseCategories = dict.ContainsKey("gProductType") ? reader[dict["gProductType"]].ToString() : null, Contributors = dict.ContainsKey("contributors") ? reader[dict["contributors"]].ToString() : null, Description = reader[dict["description"]].ToString(), HasImage = hasImage, ISBN = dict.ContainsKey("secondarySku") ? reader[dict["secondarySku"]].ToString() : null, ISBN13 = catalog == FeedSectionType.Books ? reader[dict["linkSku"]].ToString() : null, IsCanonical = isCanonical, IsSensitiveProduct = isSensitiveProduct, PID = reader[dict["gId"]].ToString(), RecordType = dict.ContainsKey("recordType") ? reader[dict["recordType"]].ToString() : string.Empty, Title = reader[dict["title"]].ToString(), UPC = catalog != FeedSectionType.Books ? reader[dict["linkSku"]].ToString() : null, ListPrice = decimal.Parse(reader[dict["price"]].ToString()), AdjustedPrice = adjustedPrice, BronteProductDataStatus = GetProductStatus(dict, reader) }; return(result); }
public IIndigoBreadcrumbCategory GetTopLevelIndigoCategory(FeedSectionType feedSectionType, string recordType = null) { return(IndigoBreadcrumbRepositoryUtils.GetTopLevelIndigoCategory(feedSectionType, _topLevelIndigoCategories, recordType)); }