Contact and settings updates.

This commit is contained in:
Burak Kaan Köse
2026-03-06 12:31:37 +01:00
parent 51f64466c2
commit e1be644631
14 changed files with 119 additions and 54 deletions
@@ -8,17 +8,23 @@ namespace Wino.Mail.ViewModels.Data;
public partial class AccountContactViewModel : ObservableObject, IMailItemDisplayInformation
{
public AccountContact SourceContact { get; }
public string Address { get; set; }
public string Name { get; set; }
public Guid? ContactPictureFileId { get; set; }
public string Base64ContactPicture { get; set; }
public bool IsRootContact { get; set; }
public bool IsOverridden { get; set; }
public AccountContactViewModel(AccountContact contact)
{
SourceContact = contact;
Address = contact.Address;
Name = contact.Name;
ContactPictureFileId = contact.ContactPictureFileId;
Base64ContactPicture = contact.Base64ContactPicture;
IsRootContact = contact.IsRootContact;
IsOverridden = contact.IsOverridden;
}
/// <summary>
@@ -68,7 +74,9 @@ public partial class AccountContactViewModel : ObservableObject, IMailItemDispla
{
Address = Address,
Name = Name,
ContactPictureFileId = ContactPictureFileId,
Base64ContactPicture = Base64ContactPicture,
IsRootContact = IsRootContact
IsRootContact = IsRootContact,
IsOverridden = IsOverridden
};
}