2023-02-19 21:39:03 -08:00
|
|
|
using System.Globalization;
|
|
|
|
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 GetByNameAndSource(string name, string source);
|
2023-02-26 09:40:04 -08:00
|
|
|
public List<SourceModel> List(int page, int count);
|
2023-02-19 21:39:03 -08:00
|
|
|
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);
|
|
|
|
}
|