using Microsoft.Extensions.Logging;

namespace Jellyfin.Plugin.SRFPlay.Api;

/// <summary>
/// Factory for creating SRF API clients.
/// </summary>
public class SRFApiClientFactory : ISRFApiClientFactory
{
    private readonly ILoggerFactory _loggerFactory;

    /// <summary>
    /// Initializes a new instance of the <see cref="SRFApiClientFactory"/> class.
    /// </summary>
    /// <param name="loggerFactory">The logger factory.</param>
    public SRFApiClientFactory(ILoggerFactory loggerFactory)
    {
        _loggerFactory = loggerFactory;
    }

    /// <inheritdoc />
    public SRFApiClient CreateClient()
    {
        return new SRFApiClient(_loggerFactory);
    }
}
