sourcegit/src/Models/Notification.cs

19 lines
402 B
C#
Raw Normal View History

namespace SourceGit.Models
{
public class Notification
{
public bool IsError { get; set; } = false;
public string Message { get; set; } = string.Empty;
2024-06-24 04:52:00 -07:00
public void CopyMessage()
{
App.CopyText(Message);
}
}
public interface INotificationReceiver
{
void OnReceiveNotification(string ctx, Notification notice);
}
}