25 lines
614 B
C#
25 lines
614 B
C#
using Backend.DatabaseHandler;
|
|
|
|
namespace Backend.Interface
|
|
{
|
|
public interface INewsSentimentStore
|
|
{
|
|
Task<List<NewsSentimentRecord>> GetByKeywordAsync(
|
|
string keyword,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task<List<NewsSentimentRecord>> GetFeedAsync(
|
|
IEnumerable<string> keywords,
|
|
int limit,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task InsertAsync(
|
|
IEnumerable<NewsSentimentRecord> records,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task<HashSet<string>> GetExistingHashesAsync(
|
|
string keyword,
|
|
CancellationToken cancellationToken = default);
|
|
}
|
|
}
|