29 lines
639 B
C#
29 lines
639 B
C#
namespace BankSampahApp.Models;
|
|
|
|
public enum NotificationCategory
|
|
{
|
|
StatusAkun,
|
|
Transaksi,
|
|
Pengajuan
|
|
}
|
|
|
|
public enum NotificationSeverity
|
|
{
|
|
Info,
|
|
Success,
|
|
Warning,
|
|
Error
|
|
}
|
|
|
|
public class NotificationItem
|
|
{
|
|
public int Id { get; set; }
|
|
public string Title { get; set; } = string.Empty;
|
|
public string Summary { get; set; } = string.Empty;
|
|
public bool IsRead { get; set; }
|
|
public NotificationCategory Category { get; set; }
|
|
public NotificationSeverity Severity { get; set; }
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
public string Link { get; set; } = string.Empty;
|
|
}
|