コード例 #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);
        }
コード例 #2
0
ファイル: ImageConverter.cs プロジェクト: Sparkjop/vc-modules
        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);
        }
コード例 #3
0
        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);
        }
コード例 #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);
        }
コード例 #5
0
        public static Image ToShopifyModel(this storefrontModel.Image image)
        {
            var converter = new ShopifyModelConverter();

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

            return(converter.ToLiquidImage(image));
        }