Example #1
0
        public virtual Image ToLiquidImage(storefrontModel.Image image)
        {
            var result = new Image();

            result.Alt  = image.Alt;
            result.Name = image.Title;
            result.Src  = image.Url;

            return(result);
        }
Example #2
0
        public static Image ToShopifyModel(this StorefrontModel.Image image)
        {
            var shopifyModel = new Image();

            shopifyModel.InjectFrom <StorefrontModel.Common.NullableAndEnumValueInjecter>(image);

            shopifyModel.Name = image.Title;
            shopifyModel.Src  = image.Url;

            return(shopifyModel);
        }
        public virtual Image ToLiquidImage(storefrontModel.Image image)
        {
            var result = new Image();

            result.InjectFrom <NullableAndEnumValueInjecter>(image);

            result.Name = image.Title;
            result.Src  = image.Url;

            return(result);
        }
Example #4
0
        public virtual Image ToLiquidImage(storefrontModel.Image image)
        {
            var factory = ServiceLocator.Current.GetInstance <ShopifyModelFactory>();
            var result  = factory.CreateImage();

            result.InjectFrom <NullableAndEnumValueInjecter>(image);

            result.Name = image.Title;
            result.Src  = image.Url;

            return(result);
        }
Example #5
0
        public static Image ToShopifyModel(this storefrontModel.Image image)
        {
            var converter = new ShopifyModelConverter();

            return(converter.ToLiquidImage(image));
        }
Example #6
0
        public static Image ToShopifyModel(this storefrontModel.Image image)
        {
            var converter = ServiceLocator.Current.GetInstance <ShopifyModelConverter>();

            return(converter.ToLiquidImage(image));
        }