/
VFlov
/
NotificationService_1
Обзор
Документация
Войти
/
VFlov
/
NotificationService_1
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/Shared/NotificationService.Shared/Models/NotificationMessage.cs
17 строк
658 B
VFlov
first_commit
27 ноя 2025, 11:43
27 ноя 2025, 11:43
819df67
Код
Авторство
О чём код?
namespace NotificationService.Shared.Models; /// <summary> /// Базовая модель уведомления /// </summary> public class NotificationMessage { public Guid Id { get; set; } = Guid.NewGuid(); public NotificationType Type { get; set; } public string Recipient { get; set; } = string.Empty; public string Subject { get; set; } = string.Empty; public string Content { get; set; } = string.Empty; public Dictionary<string, string> Metadata { get; set; } = new(); public DateTime CreatedAt { get; set; } = DateTime.UtcNow; public int RetryCount { get; set; } = 0; public int MaxRetries { get; set; } = 3; }