Stream custom live channels using your own media
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
745 B

using System.Collections.Generic;
using System.Threading.Tasks;
using ErsatzTV.Core.Domain;
using LanguageExt;
namespace ErsatzTV.Core.Interfaces.Repositories
{
public interface IMediaSourceRepository
{
public Task<LocalMediaSource> Add(LocalMediaSource localMediaSource);
public Task<PlexMediaSource> Add(PlexMediaSource plexMediaSource);
public Task<List<MediaSource>> GetAll();
public Task<List<PlexMediaSource>> GetAllPlex();
public Task<Option<MediaSource>> Get(int id);
public Task<Option<PlexMediaSource>> GetPlex(int id);
public Task<int> CountMediaItems(int id);
public Task Update(PlexMediaSource plexMediaSource);
public Task Delete(int id);
}
}