Attempt to bring back ListView.

This commit is contained in:
Burak Kaan Köse
2025-10-25 10:54:38 +02:00
parent 6c37c9e786
commit d4c8ae6cb7
8 changed files with 587 additions and 35 deletions
@@ -0,0 +1,25 @@
using System;
using Wino.Core.Domain.Interfaces;
namespace Wino.Mail.ViewModels.Data;
/// <summary>
/// Common interface for mail items that can be displayed in a mail list.
/// Implemented by both MailItemViewModel and ThreadMailItemViewModel.
/// </summary>
public interface IMailListItem : IMailHashContainer
{
/// <summary>
/// Gets the latest creation date for sorting purposes.
/// For MailItemViewModel: the mail's creation date
/// For ThreadMailItemViewModel: the latest email's creation date
/// </summary>
DateTime CreationDate { get; }
/// <summary>
/// Gets the sender's name for grouping purposes.
/// For MailItemViewModel: the mail's from name
/// For ThreadMailItemViewModel: the latest email's from name
/// </summary>
string FromName { get; }
}