Sistema de Notificaciones y Baja One-Click

This commit is contained in:
2026-03-12 13:52:33 -03:00
parent f1a9bb9099
commit 96fca4d9c7
21 changed files with 1384 additions and 79 deletions

View File

@@ -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; }
}