Couple fixes for beta.

This commit is contained in:
Burak Kaan Köse
2026-04-16 13:45:11 +02:00
parent 65f7e0236a
commit 784144cd13
12 changed files with 217 additions and 33 deletions
@@ -23,6 +23,20 @@ public interface IAccountService
/// <returns>All local accounts</returns>
Task<List<MailAccount>> GetAccountsAsync();
/// <summary>
/// Checks whether an account with the same display name already exists.
/// </summary>
/// <param name="name">Account display name.</param>
/// <param name="excludedAccountId">Optional account id to exclude from the check.</param>
Task<bool> AccountNameExistsAsync(string name, Guid? excludedAccountId = null);
/// <summary>
/// Checks whether an account with the same primary address already exists.
/// </summary>
/// <param name="address">Primary e-mail address.</param>
/// <param name="excludedAccountId">Optional account id to exclude from the check.</param>
Task<bool> AccountAddressExistsAsync(string address, Guid? excludedAccountId = null);
/// <summary>
/// Returns single MailAccount
/// </summary>