public HybrisProductCatalog(XElement configuration) { this.hybrisClient = new HybrisClient(configuration.Element(EclProvider.EcommerceEclNs + "ShopUrl").Value, configuration.Element(EclProvider.EcommerceEclNs + "Username").Value, configuration.Element(EclProvider.EcommerceEclNs + "Password").Value, configuration.Element(EclProvider.EcommerceEclNs + "ActiveCatalogVersion").Value); this.mediaUrl = configuration.Element(EclProvider.EcommerceEclNs + "MediaUrl").Value; }
public HybrisProductCatalog(string shopUrl, string username, string password, string activeCatalogVersion, string mediaUrl) { this.hybrisClient = new HybrisClient(shopUrl, username, password, activeCatalogVersion); this.mediaUrl = mediaUrl; }