2025-02-15 12:53:32 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Wino.Core.Domain.Entities.Mail;
|
|
|
|
|
using Wino.Core.Domain.Models.MailItem;
|
|
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
namespace Wino.Core.Domain.Interfaces;
|
|
|
|
|
|
|
|
|
|
public interface IImapSynchronizer
|
2025-02-15 12:53:32 +01:00
|
|
|
{
|
2025-02-16 11:54:23 +01:00
|
|
|
uint InitialMessageDownloadCountPerFolder { get; }
|
2025-02-15 12:53:32 +01:00
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
Task<List<NewMailItemPackage>> CreateNewMailPackagesAsync(ImapMessageCreationPackage message, MailItemFolder assignedFolder, CancellationToken cancellationToken = default);
|
|
|
|
|
Task StartIdleClientAsync();
|
|
|
|
|
Task StopIdleClientAsync();
|
2025-02-26 23:13:17 +01:00
|
|
|
Task PreWarmClientPoolAsync();
|
2025-02-15 12:53:32 +01:00
|
|
|
}
|