forked from ddrilling/AsbCloudServer
59 lines
1.4 KiB
C#
59 lines
1.4 KiB
C#
|
using System;
|
||
|
|
||
|
namespace AsbCloudApp.Data;
|
||
|
|
||
|
/// <summary>
|
||
|
/// DTO уведомлений
|
||
|
/// </summary>
|
||
|
public class NotificationDto : IId
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Id уведомления
|
||
|
/// </summary>
|
||
|
public int Id { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Id получателя уведомления
|
||
|
/// </summary>
|
||
|
public int IdUser { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Id способа отправки уведомления
|
||
|
/// </summary>
|
||
|
public int IdNotificationTransport { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Id категории уведомления
|
||
|
/// </summary>
|
||
|
public int IdNotificationCategory { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Заголовок уведомления
|
||
|
/// </summary>
|
||
|
public string Title { get; set; } = null!;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Текст уведомления
|
||
|
/// </summary>
|
||
|
public string Subject { get; set; } = null!;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Время жизни уведомления
|
||
|
/// </summary>
|
||
|
public TimeSpan TimeToLife { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Дата отправки уведомления
|
||
|
/// </summary>
|
||
|
public DateTime? SentDateAtUtc { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// DTO способа доставки уведомления
|
||
|
/// </summary>
|
||
|
public NotificationTransportDto NotificationTransport { get; set; } = null!;
|
||
|
|
||
|
/// <summary>
|
||
|
/// DTO категории уведомления
|
||
|
/// </summary>
|
||
|
public NotificationCategoryDto NotificationCategory { get; set; } = null!;
|
||
|
}
|