public MagentoImage(string imageType, string imageUrl) { this.ImageUrl = imageUrl; MagentoUrlType magentoUrlType; if (Enum.TryParse(imageType, true, out magentoUrlType)) { this.ImageType = magentoUrlType; } }
public MagentoImage(CatalogDataProductAttributeMediaGalleryEntryInterface catalogProductImageEntity) { this.ImageUrl = catalogProductImageEntity.file; this.ImageType = catalogProductImageEntity.types.Select(x => { MagentoUrlType magentoUrlType; if (Enum.TryParse(x, true, out magentoUrlType)) { return(magentoUrlType); } return(( MagentoUrlType )0); }).Aggregate(( MagentoUrlType )0, (x, y) => x | y); }
public MagentoImage(MagentoSoapServiceReference_v_1_14_1_EE.catalogProductImageEntity catalogProductImageEntity) { ImageUrl = catalogProductImageEntity.url; this.ImageType = catalogProductImageEntity.types.Select(x => { MagentoUrlType magentoUrlType; if (Enum.TryParse(x, true, out magentoUrlType)) { return(magentoUrlType); } return(( MagentoUrlType )0); }).Aggregate(( MagentoUrlType )0, (x, y) => x | y); }
public MagentoImage(TsZoey_v_1_9_0_1_CE.catalogProductImageEntity catalogProductImageEntity) { ImageUrl = catalogProductImageEntity.url; this.ImageType = catalogProductImageEntity.types.Select(x => { MagentoUrlType magentoUrlType; if (Enum.TryParse(x, true, out magentoUrlType)) { return(magentoUrlType); } return(( MagentoUrlType )0); }).Aggregate(( MagentoUrlType )0, (x, y) => x | y); }
internal MagentoUrl(string magentoImageUrl, MagentoUrlType magentoUrlType) { this.Url = magentoImageUrl; this.Type = magentoUrlType; }