24 lines
788 B
C#
24 lines
788 B
C#
using PowderCoating.Core.Enums;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace PowderCoating.Application.DTOs.Notification;
|
|
|
|
public class NotificationTemplateDto
|
|
{
|
|
public int Id { get; set; }
|
|
public NotificationType NotificationType { get; set; }
|
|
public NotificationChannel Channel { get; set; }
|
|
public string DisplayName { get; set; } = string.Empty;
|
|
public string? Subject { get; set; }
|
|
public string Body { get; set; } = string.Empty;
|
|
public bool IsEmail => Channel == NotificationChannel.Email;
|
|
public DateTime? UpdatedAt { get; set; }
|
|
}
|
|
|
|
public class UpdateNotificationTemplateDto
|
|
{
|
|
public int Id { get; set; }
|
|
[StringLength(300)] public string? Subject { get; set; }
|
|
[Required] public string Body { get; set; } = string.Empty;
|
|
}
|