public virtual Notification ToLiquidNotification(StorefrontNotification notification) { var result = new Notification(); result.InjectFrom <NullableAndEnumValueInjecter>(notification); return(result); }
public virtual Notification ToLiquidNotification(StorefrontNotification notification) { var factory = ServiceLocator.Current.GetInstance <ShopifyModelFactory>(); var result = factory.CreateNotification(); result.InjectFrom <NullableAndEnumValueInjecter>(notification); return(result); }
public static Notification ToShopifyModel(this StorefrontNotification storefrontModel) { var shopifyModel = new Notification(); shopifyModel.Message = storefrontModel.Message; shopifyModel.Title = storefrontModel.Title; shopifyModel.Type = storefrontModel.Type.ToString(); return(shopifyModel); }
public virtual Notification ToLiquidNotification(StorefrontNotification notification) { var result = new Notification(); result.Message = notification.Message; result.Title = notification.Title; result.Type = notification.Type.ToString(); return(result); }
public static Notification ToShopifyModel(this StorefrontNotification notification) { var converter = ServiceLocator.Current.GetInstance <ShopifyModelConverter>(); return(converter.ToLiquidNotification(notification)); }
public static Notification ToShopifyModel(this StorefrontNotification notification) { var converter = new ShopifyModelConverter(); return(converter.ToLiquidNotification(notification)); }