// Copyright (c) MudBlazor 2021 // MudBlazor licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Diagnostics.CodeAnalysis; namespace Connected.Components; internal class SnackbarMessage { internal Type ComponentType { get; } internal Dictionary ComponentParameters { get; } internal string Key { get; } [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(SnackbarMessageRenderFragment))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(SnackbarMessageText))] internal SnackbarMessage(Type componentType, Dictionary componentParameters = null, string key = "") { ComponentType = componentType; ComponentParameters = componentParameters; Key = key; } public string Text { get; set; } }