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 List(int page, int count); public List ListBySource(string source, int limit); public List ListByType(string type, int limit = 25); public int Disable(Guid id); public int Enable(Guid id); public int UpdateYoutubeId(Guid id, string youtubeId); }