2024-04-18 01:44:37 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Wino.Core.Domain.Models.MailItem;
|
|
|
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
|
namespace Wino.Core.Domain.Interfaces;
|
|
|
|
|
|
|
|
|
|
|
|
public interface INotificationBuilder
|
2024-04-18 01:44:37 +02:00
|
|
|
|
{
|
2025-02-16 11:54:23 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Creates toast notifications for new mails.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Task CreateNotificationsAsync(Guid inboxFolderId, IEnumerable<IMailItem> newMailItems);
|
2024-04-18 01:44:37 +02:00
|
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the unread Inbox messages for each account and updates the taskbar icon.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task UpdateTaskbarIconBadgeAsync();
|
2024-04-18 01:44:37 +02:00
|
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Creates test notification for test purposes.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Task CreateTestNotificationAsync(string title, string message);
|
2025-07-26 12:51:53 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Removes the toast notification for a specific mail by unique id.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
void RemoveNotification(Guid mailUniqueId);
|
2024-04-18 01:44:37 +02:00
|
|
|
|
}
|