-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFlash.cs
36 lines (34 loc) · 1.02 KB
/
Flash.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace Santhos.Web.Mvc.BootstrapFlashMessages
{
/// <summary>
/// Flash message
/// </summary>
internal class Flash
{
/// <summary>
/// Initializes a new instance of the <see cref="Flash"/> class.
/// </summary>
/// <param name="severity">The severity.</param>
/// <param name="message">The message.</param>
/// <param name="messageArgs">The message arguments.</param>
public Flash(string severity, string message, params object[] messageArgs)
{
this.Severity = severity;
this.Message = string.Format(message, messageArgs);
}
/// <summary>
/// Gets the severity.
/// </summary>
/// <value>
/// The severity.
/// </value>
public string Severity { get; private set; }
/// <summary>
/// Gets the message.
/// </summary>
/// <value>
/// The message.
/// </value>
public string Message { get; private set; }
}
}