mirror of
https://github.com/C9Glax/tranga.git
synced 2025-06-18 09:17:52 +02:00
Add NotificationUrgency.cs
This commit is contained in:
@ -4,12 +4,12 @@ using Microsoft.EntityFrameworkCore;
|
||||
namespace API.Schema;
|
||||
|
||||
[PrimaryKey("NotificationId")]
|
||||
public class Notification(string title, string message = "", byte urgency = 2, DateTime? date = null)
|
||||
public class Notification(string title, string message = "", NotificationUrgency urgency = NotificationUrgency.Normal, DateTime? date = null)
|
||||
{
|
||||
[MaxLength(64)]
|
||||
public string NotificationId { get; init; } = TokenGen.CreateToken("Notification", 64);
|
||||
|
||||
public byte Urgency { get; init; } = urgency;
|
||||
public NotificationUrgency Urgency { get; init; } = urgency;
|
||||
|
||||
public string Title { get; init; } = title;
|
||||
|
||||
|
Reference in New Issue
Block a user