Files
Wino-Mail/Wino.Core.Domain/Interfaces/IFolderMenuItem.cs
T

49 lines
1.4 KiB
C#
Raw Normal View History

2024-04-18 01:44:37 +02:00
using System.Collections.Generic;
2025-10-06 17:46:00 +02:00
using System.Collections.ObjectModel;
2024-11-10 23:28:25 +01:00
using Wino.Core.Domain.Entities.Shared;
2024-04-18 01:44:37 +02:00
using Wino.Core.Domain.Enums;
using Wino.Core.Domain.Models.Folders;
2025-02-16 11:54:23 +01:00
namespace Wino.Core.Domain.Interfaces;
public interface IFolderMenuItem : IBaseFolderMenuItem
2024-04-18 01:44:37 +02:00
{
2025-02-16 11:54:23 +01:00
MailAccount ParentAccount { get; }
void UpdateParentAccounnt(MailAccount account);
}
2024-04-18 01:44:37 +02:00
2025-02-16 11:54:23 +01:00
public interface IMergedAccountFolderMenuItem : IBaseFolderMenuItem { }
2024-04-18 01:44:37 +02:00
2026-04-15 01:18:07 +02:00
public interface IMailCategoryMenuItem : IBaseFolderMenuItem
{
Entities.Mail.MailCategory MailCategory { get; }
string TextColorHex { get; }
string BackgroundColorHex { get; }
bool HasTextColor { get; }
}
public interface IMergedMailCategoryMenuItem : IBaseFolderMenuItem
{
IReadOnlyList<Entities.Mail.MailCategory> Categories { get; }
string TextColorHex { get; }
string BackgroundColorHex { get; }
bool HasTextColor { get; }
}
2025-02-16 11:54:23 +01:00
public interface IBaseFolderMenuItem : IMenuItem
{
string FolderName { get; }
bool IsSynchronizationEnabled { get; }
int UnreadItemCount { get; set; }
SpecialFolderType SpecialFolderType { get; }
IEnumerable<IMailItemFolder> HandlingFolders { get; }
2025-10-06 17:46:00 +02:00
ObservableCollection<IMenuItem> SubMenuItems { get; }
2025-02-16 11:54:23 +01:00
bool IsMoveTarget { get; }
bool IsSticky { get; }
bool IsSystemFolder { get; }
bool ShowUnreadCount { get; }
string AssignedAccountName { get; }
2024-04-18 01:44:37 +02:00
2025-02-16 11:54:23 +01:00
void UpdateFolder(IMailItemFolder folder);
2024-04-18 01:44:37 +02:00
}