diff --git a/Newsbot.Collector.Domain/Interfaces/IAuthorTable.cs b/Newsbot.Collector.Domain/Interfaces/IAuthorTable.cs index 6c777a2..5071a54 100644 --- a/Newsbot.Collector.Domain/Interfaces/IAuthorTable.cs +++ b/Newsbot.Collector.Domain/Interfaces/IAuthorTable.cs @@ -4,8 +4,11 @@ namespace Newsbot.Collector.Domain.Interfaces; public interface IAuthorTable { - AuthorEntity New(AuthorEntity entity); - List ListBySourceId(Guid sourceId); - int TotalPosts(Guid id); - AuthorEntity? GetBySourceIdAndName(Guid sourceId, string name); + Task NewAsync(AuthorEntity entity); + + Task CreateIfMissingAsync(AuthorEntity entity); + Task> ListBySourceIdAsync(Guid sourceId); + Task TotalPostsAsync(Guid id); + Task GetBySourceIdAndNameAsync(Guid sourceId, string name); + Task GetById(Guid id); } \ No newline at end of file diff --git a/Newsbot.Collector.Domain/Interfaces/ICollector.cs b/Newsbot.Collector.Domain/Interfaces/ICollector.cs deleted file mode 100644 index ac2b55b..0000000 --- a/Newsbot.Collector.Domain/Interfaces/ICollector.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Newsbot.Collector.Domain.Models; - -namespace Newsbot.Collector.Domain.Interfaces; - -/// -public interface ICollector : IHangfireJob -{ - List Collect(); -} \ No newline at end of file