internal Element_Toast ConvertToElement() { var toast = new Element_Toast() { ActivationType = ActivationType, Duration = Duration, Launch = Launch, Scenario = Scenario }; if (Visual != null) { toast.Visual = Visual.ConvertToElement(); } if (Audio != null) { toast.Audio = Audio.ConvertToElement(); } if (Actions != null) { toast.Actions = ConvertToActionsElement(Actions); } return(toast); }
internal Element_Toast ConvertToElement() { var toast = new Element_Toast() { ActivationType = ActivationType, Duration = Duration, Launch = Launch, Scenario = Scenario }; if (Visual != null) toast.Visual = Visual.ConvertToElement(); if (Audio != null) toast.Audio = Audio.ConvertToElement(); if (Actions != null) toast.Actions = ConvertToActionsElement(Actions); return toast; }