using CMSMicroservice.Domain.Enums;

namespace CMSMicroservice.Application.PublicMessageCQ.Queries.GetActiveMessages;

/// <summary>
/// DTO پیام عمومی برای نمایش به کاربران
/// </summary>
public class PublicMessageDto
{
    public long Id { get; set; }
    public string Title { get; set; } = string.Empty;
    public string Content { get; set; } = string.Empty;
    public MessageType Type { get; set; }
    public string TypeName { get; set; } = string.Empty;
    public MessagePriority Priority { get; set; }
    public string PriorityName { get; set; } = string.Empty;
    public DateTime? StartsAt { get; set; }
    public DateTime? ExpiresAt { get; set; }
    public string? LinkUrl { get; set; }
    public string? LinkText { get; set; }
    public DateTime Created { get; set; }
}
