using System;
namespace FrameworkDAL.DTO.MessageHub.MessageHubGenerator
{
///
/// Template DTO for WhatsApp / Teams / Slack
/// Used to store HTML / Template Content from DB
///
public class PlatformTemplateDTO
{
// -------------------------
// Entity Information
// -------------------------
public int EntityId { get; set; }
public string EntityCode { get; set; } = string.Empty;
public string EntityName { get; set; } = string.Empty;
// -------------------------
// Event Information
// -------------------------
public int EventTypeId { get; set; }
public string EventTypeCode { get; set; } = string.Empty;
public string EventTypeName { get; set; } = string.Empty;
// -------------------------
// Action / Template Mapping
// -------------------------
///
/// MACTION.ACTIONID
/// Primary key for routing and auditing
///
public int ActionId { get; set; }
///
/// MACTION.ACTIONTYPE
/// 7 = WhatsApp, 8 = Teams, 9 = Slack, etc.
///
public int ActionType { get; set; }
public int MailTemplateId { get; set; }
public string MailTemplateCode { get; set; } = string.Empty;
public string MailTemplateName { get; set; } = string.Empty;
// -------------------------
// Template Content
// -------------------------
public string Subject { get; set; } = string.Empty;
///
/// HTML body stored in DB
///
public string BodyHtml { get; set; } = string.Empty;
}
}