You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
869 B
26 lines
869 B
// 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<string, object> ComponentParameters { get; }
|
|
internal string Key { get; }
|
|
|
|
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(SnackbarMessageRenderFragment))]
|
|
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(SnackbarMessageText))]
|
|
internal SnackbarMessage(Type componentType, Dictionary<string, object> componentParameters = null, string key = "")
|
|
{
|
|
ComponentType = componentType;
|
|
ComponentParameters = componentParameters;
|
|
Key = key;
|
|
}
|
|
|
|
public string Text { get; set; }
|
|
}
|