0
0
mirror of https://github.com/sp-tarkov/launcher.git synced 2025-02-13 09:50:43 -05:00

57 lines
1.3 KiB
C#
Raw Permalink Normal View History

2023-03-03 19:25:33 +00:00
/* NotificationItem.cs
* License: NCSA Open Source License
*
2024-05-21 20:15:19 +01:00
* Copyright: SPT
2023-03-03 19:25:33 +00:00
* AUTHORS:
* waffle.lord
*/
using System;
using System.ComponentModel;
using SPT.Launcher.Utilities;
2023-03-03 19:25:33 +00:00
2024-05-21 20:15:19 +01:00
namespace SPT.Launcher.Models.Launcher.Notifications
2023-03-03 19:25:33 +00:00
{
public class NotificationItem : NotifyPropertyChangedBase
2023-03-03 19:25:33 +00:00
{
private string _message;
2023-03-03 19:25:33 +00:00
public string Message
{
get => _message;
set => SetProperty(ref _message, value);
2023-03-03 19:25:33 +00:00
}
private string _buttonText;
2023-03-03 19:25:33 +00:00
public string ButtonText
{
get => _buttonText;
set => SetProperty(ref _buttonText, value);
2023-03-03 19:25:33 +00:00
}
private bool _hasButton;
2023-03-03 19:25:33 +00:00
public bool HasButton
{
get => _hasButton;
set => SetProperty(ref _hasButton, value);
2023-03-03 19:25:33 +00:00
}
public Action ItemAction = null;
public NotificationItem(string message)
2023-03-03 19:25:33 +00:00
{
Message = message;
2023-03-03 19:25:33 +00:00
ButtonText = string.Empty;
HasButton = false;
}
public NotificationItem(string message, string buttonText, Action itemAction)
2023-03-03 19:25:33 +00:00
{
Message = message;
ButtonText = buttonText;
2023-03-03 19:25:33 +00:00
HasButton = true;
ItemAction = itemAction;
2023-03-03 19:25:33 +00:00
}
}
}