/// <summary> /// /// </summary> /// <param name="productItemProperty"></param> /// <param name="duration">sencond</param> /// <returns></returns> public static void SetPremimDurationFromPi(this ProductItemProperty productItemProperty, int duration) { productItemProperty.Property = new PremiumProductProperty(productItemProperty.Property) { Duration = duration }; }
public ProductItemProperty(ProductItemProperty other) { var pi = other.CloneDeep(); TranslateText = pi.TranslateText; ImgCollectionImg = pi.ImgCollectionImg; Property = pi.Property; }
public static BoosterProductProperty GetBooserProperty(this ProductItemProperty productItemProperty) { return(GetBooserProperty(productItemProperty.Property)); }
public static PremiumProductProperty GetPremiumProperties(this ProductItemProperty productItemProperty) { return(GetPremiumProperties(productItemProperty.Property)); }
public static PremiumProductProperty CreatePremuiumProperties(this ProductItemProperty productItemProperty) { return(productItemProperty == null ? new PremiumProductProperty() : CreatePremuiumProperties(productItemProperty.Property)); }