Ejemplo n.º 1
0
        public MagentoImage(string imageType, string imageUrl)
        {
            this.ImageUrl = imageUrl;

            MagentoUrlType magentoUrlType;

            if (Enum.TryParse(imageType, true, out magentoUrlType))
            {
                this.ImageType = magentoUrlType;
            }
        }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
 internal MagentoUrl(string magentoImageUrl, MagentoUrlType magentoUrlType)
 {
     this.Url  = magentoImageUrl;
     this.Type = magentoUrlType;
 }