namespace OF_DL.Models.Downloads;

/// <summary>
///     Represents the result of a download operation.
/// </summary>
public class DownloadResult
{
    /// <summary>
    ///     Total number of media items processed.
    /// </summary>
    public int TotalCount { get; set; }

    /// <summary>
    ///     Number of newly downloaded media items.
    /// </summary>
    public int NewDownloads { get; set; }

    /// <summary>
    ///     Number of media items that were already downloaded.
    /// </summary>
    public int ExistingDownloads { get; set; }

    /// <summary>
    ///     The type of media downloaded (e.g., "Posts", "Messages", "Stories", etc.).
    /// </summary>
    public string MediaType { get; set; } = string.Empty;

    /// <summary>
    ///     Indicates whether the download operation was successful.
    /// </summary>
    public bool Success { get; set; } = true;

    /// <summary>
    ///     Optional error message if the download failed.
    /// </summary>
    public string? ErrorMessage { get; set; }
}
