James Tombleson
9be985da0a
* Found the meta tags on youtube... in the body and updated the client to pull them out. * Updated namespace on test * I think formatting cleaned this up * Seed migrations have been cleaned up to get my configs out and moving them to a script. * Updates to the ISourcesRepository.cs to allow for new calls to the db. * formatter * Db models updated. Icon now can track sourceID and source can have a youtube id. * Updated api logger to ignore otel if no connection string given. * updated docker init so I can run migrations from the image * seed was updated to reflect the new api changes * Updated the SourcesController.cs to grab icon data. * Added reddit const values * Minor changes to HtmlPageReader.cs * Jobs are now pulling in the config section to bundle values. * Removed youtube api, not needed anymore. * test updates
19 lines
729 B
C#
19 lines
729 B
C#
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 int UpdateYoutubeId(Guid id, string youtubeId);
|
|
} |