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