Newsbot.Collector/Newsbot.Collector.Domain/Interfaces/ISourcesRepository.cs

20 lines
762 B
C#
Raw Normal View History

using Newsbot.Collector.Domain.Models;
namespace Newsbot.Collector.Domain.Interfaces;
public interface ISourcesRepository
{
public SourceModel New(SourceModel model);
public SourceModel GetByID(Guid ID);
public SourceModel GetByID(string ID);
public SourceModel GetByName(string name);
public SourceModel GetByNameAndType(string name, string type);
SourceModel GetByUrl(string url);
public List<SourceModel> List(int page, int count);
public List<SourceModel> ListBySource(string source, int limit);
public List<SourceModel> ListByType(string type, int limit = 25);
public int Disable(Guid id);
public int Enable(Guid id);
public void Delete(Guid id);
public int UpdateYoutubeId(Guid id, string youtubeId);
}