using System.Collections.Generic;

namespace Jellyfin.Plugin.SRFPlay.Api.Models;

/// <summary>
/// Outcome of a resume point ("Continue Watching") cleanup run.
/// </summary>
public class ResumeCleanupResult
{
    /// <summary>
    /// Gets or sets the number of users whose resume list was inspected.
    /// </summary>
    public int UsersChecked { get; set; }

    /// <summary>
    /// Gets or sets the number of plugin-owned resume points that were inspected.
    /// </summary>
    public int Inspected { get; set; }

    /// <summary>
    /// Gets or sets the number of resume points that were cleared.
    /// </summary>
    public int Cleared { get; set; }

    /// <summary>
    /// Gets the number of cleared resume points grouped by the rule that matched.
    /// </summary>
    public Dictionary<string, int> ClearedByReason { get; } = new Dictionary<string, int>();
}
