forked from ddrilling/AsbCloudServer
1. Адаптировал EmailService под сервис транспорта отправки уведомлений по Email 2. Заменил использование EmailService на NotificationService 3. Поправил тесты 4. Создал запрос для отправки уведомлений
37 lines
1001 B
C#
37 lines
1001 B
C#
namespace AsbCloudApp.Requests;
|
|
|
|
/// <summary>
|
|
/// Параметры запроса для отправки уведомления
|
|
/// </summary>
|
|
public class NotifyRequest
|
|
{
|
|
/// <summary>
|
|
/// Id пользователя
|
|
/// </summary>
|
|
public int IdUser { get; set; }
|
|
|
|
/// <summary>
|
|
/// Email пользователя
|
|
/// </summary>
|
|
public string? UserEmail { get; set; }
|
|
|
|
/// <summary>
|
|
/// Id категории уведомления. Допустимое значение параметра: 1
|
|
/// </summary>
|
|
public int IdNotificationCategory { get; set; }
|
|
|
|
/// <summary>
|
|
/// Заголовок уведомления
|
|
/// </summary>
|
|
public string Title { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Сообщение уведомления
|
|
/// </summary>
|
|
public string Message { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Id типа доставки уведомления. Допустимое значение: 0, 1
|
|
/// </summary>
|
|
public int IdTransportType { get; set; }
|
|
} |