using System; using System.Collections.Generic; namespace FrameworkDAL.DTO.MessageHub.MessageHubGenerator { public class MessageHubOldDTO { // Primary Key public int MessageHubId { get; set; } // Core MessageHub Fields public byte Mode { get; set; } // e.g., Email, SMS, WhatsApp, etc. public string? Recipient { get; set; } // Optional: Name or identifier public string? MessageText { get; set; } // Optional: will be generated in BLL public string? AuthToken { get; set; } // Optional: will come from appsettings public int? PhoneNumberId { get; set; } // nullable if not applicable public string? WebhookUrl { get; set; } // Optional: for Teams/Telegram // System / Meta Fields public short SortOrder { get; set; } public byte Status { get; set; } // 1=Active, 0=Inactive, etc. public short Version { get; set; } public byte SourceType { get; set; } // e.g., 0=System, 1=Manual public int CreatedById { get; set; } public int ModifiedById { get; set; } public int TemplateId { get; set; } public DateTime? CreatedOn { get; set; } // timestamp of creation public DateTime? ModifiedOn { get; set; } // timestamp of last modification public int TenantId { get; set; } // Optional / Extra Fields for display or extended usage public string? ModeName { get; set; } // e.g., "WhatsApp", "Email" public string? StatusName { get; set; } // e.g., "Active", "Inactive" // Payload / dynamic data public Dictionary? Payload { get; set; } // Optional recipient override public string? To { get; set; } } }