2026-02-11 01:49:29 +01:00
|
|
|
using System;
|
2024-04-18 01:44:37 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
2026-02-11 01:49:29 +01:00
|
|
|
using Wino.Core.Domain.Entities.Calendar;
|
2025-10-03 15:46:38 +02:00
|
|
|
using Wino.Core.Domain.Entities.Mail;
|
2025-11-14 12:12:13 +01:00
|
|
|
using Wino.Core.Domain.Entities.Shared;
|
2024-04-18 01:44:37 +02:00
|
|
|
|
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>
|
2025-11-12 15:44:43 +01:00
|
|
|
Task CreateNotificationsAsync(IEnumerable<MailCopy> 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-07-26 12:51:53 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Removes the toast notification for a specific mail by unique id.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void RemoveNotification(Guid mailUniqueId);
|
2025-11-14 12:12:13 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Shows a notification that the account requires attention.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="account">Account that needs attention.</param>
|
|
|
|
|
void CreateAttentionRequiredNotification(MailAccount account);
|
2026-02-11 01:49:29 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a calendar reminder toast for the specified calendar item.
|
|
|
|
|
/// </summary>
|
|
|
|
|
Task CreateCalendarReminderNotificationAsync(CalendarItem calendarItem, long reminderDurationInSeconds);
|
2024-04-18 01:44:37 +02:00
|
|
|
}
|