using System; namespace MaterialDesignThemes.Wpf { internal class SnackbarMessageQueueItem { public SnackbarMessageQueueItem(object content, object actionContent = null, Action actionHandler = null, object actionArgument = null, bool isPromoted = false, bool ignoreDuplicate = false) { Content = content; ActionContent = actionContent; ActionHandler = actionHandler; ActionArgument = actionArgument; IsPromoted = isPromoted; IgnoreDuplicate = ignoreDuplicate; } /// /// The content to be displayed /// public object Content { get; } /// /// The content for the action button on the snackbar /// public object ActionContent { get; } /// /// Handler to be invoked when the action button is clicked /// public Action ActionHandler { get; } /// /// The argument to pass to the delegate. /// public object ActionArgument { get; } /// /// Promote the message, pushing it in front of any message that is not promoted. /// public bool IsPromoted { get; } /// /// Still display this message even if it is a duplicate. /// public bool IgnoreDuplicate { get; } } }