This commit is contained in:
kislovdm
2026-03-10 14:23:42 +03:00
commit 6c8b9334c8
106 changed files with 4538 additions and 0 deletions
@@ -0,0 +1,11 @@
using PepperBot.Domain;
namespace PepperBot.Application.Interfaces;
public interface IDealRepository
{
Task InitializeAsync(CancellationToken cancellationToken);
Task<bool> ExistsAsync(long id, CancellationToken cancellationToken);
Task AddAsync(Deal deal, CancellationToken cancellationToken);
}
@@ -0,0 +1,9 @@
using PepperBot.Domain;
namespace PepperBot.Application.Interfaces;
public interface IPepperClient
{
Task<IReadOnlyList<Deal>> GetLatestDealsAsync(CancellationToken cancellationToken);
}
@@ -0,0 +1,9 @@
using PepperBot.Domain;
namespace PepperBot.Application.Interfaces;
public interface ITelegramNotifier
{
Task NotifyNewDealAsync(Deal deal, CancellationToken cancellationToken);
}