NotificationsExtensions.Toasts.ToastContent.ConvertToActionsElement C# (CSharp) Method

ConvertToActionsElement() private static method

private static ConvertToActionsElement ( IToastActions actions ) : NotificationsExtensions.Toasts.Element_ToastActions
actions IToastActions
return NotificationsExtensions.Toasts.Element_ToastActions
        private static Element_ToastActions ConvertToActionsElement(IToastActions actions)
        {
            if (actions is ToastActionsCustom)
                return (actions as ToastActionsCustom).ConvertToElement();

            else if (actions is ToastActionsSnoozeAndDismiss)
                return (actions as ToastActionsSnoozeAndDismiss).ConvertToElement();

            throw new NotImplementedException("Unknown actions type: " + actions.GetType());
        }