Sistema de Notificaciones y Baja One-Click
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
namespace MotoresArgentinosV2.Core.DTOs;
|
||||
|
||||
/// <summary>
|
||||
/// DTO para mostrar el estado de todas las categorías de notificación de un usuario.
|
||||
/// </summary>
|
||||
public class NotificationPreferencesDto
|
||||
{
|
||||
// true = el usuario SÍ quiere recibir este tipo de correo
|
||||
public bool Sistema { get; set; } = true;
|
||||
public bool Marketing { get; set; } = true;
|
||||
public bool Rendimiento { get; set; } = true;
|
||||
public bool Mensajes { get; set; } = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// DTO para actualizar las preferencias desde el perfil del usuario.
|
||||
/// </summary>
|
||||
public class UpdateNotificationPreferencesDto
|
||||
{
|
||||
public bool Sistema { get; set; }
|
||||
public bool Marketing { get; set; }
|
||||
public bool Rendimiento { get; set; }
|
||||
public bool Mensajes { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user