refactor to unify data fetching and define abstract API for re-use
This commit is contained in:
@@ -2,7 +2,7 @@ using System;
|
||||
using System.Globalization;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Jellyfin.Plugin.SRFPlay.Services;
|
||||
using Jellyfin.Plugin.SRFPlay.Services.Interfaces;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
@@ -18,14 +18,14 @@ namespace Jellyfin.Plugin.SRFPlay.Controllers;
|
||||
public class StreamProxyController : ControllerBase
|
||||
{
|
||||
private readonly ILogger<StreamProxyController> _logger;
|
||||
private readonly StreamProxyService _proxyService;
|
||||
private readonly IStreamProxyService _proxyService;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="StreamProxyController"/> class.
|
||||
/// </summary>
|
||||
/// <param name="logger">The logger.</param>
|
||||
/// <param name="proxyService">The proxy service.</param>
|
||||
public StreamProxyController(ILogger<StreamProxyController> logger, StreamProxyService proxyService)
|
||||
public StreamProxyController(ILogger<StreamProxyController> logger, IStreamProxyService proxyService)
|
||||
{
|
||||
_logger = logger;
|
||||
_proxyService = proxyService;
|
||||
|
||||
Reference in New Issue
Block a user