Add mail categories support
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Wino.Core.Domain.Entities.Mail;
|
||||
using Wino.Core.Domain.Models.Accounts;
|
||||
|
||||
namespace Wino.Core.Domain.Interfaces;
|
||||
|
||||
public interface IMailCategoryService
|
||||
{
|
||||
Task<List<MailCategory>> GetCategoriesAsync(Guid accountId);
|
||||
Task<List<MailCategory>> GetFavoriteCategoriesAsync(Guid accountId);
|
||||
Task<MailCategory> GetCategoryAsync(Guid categoryId);
|
||||
Task<bool> CategoryNameExistsAsync(Guid accountId, string name, Guid? excludedCategoryId = null);
|
||||
Task<MailCategory> CreateCategoryAsync(MailCategory category);
|
||||
Task UpdateCategoryAsync(MailCategory category);
|
||||
Task DeleteCategoryAsync(Guid categoryId);
|
||||
Task DeleteCategoriesAsync(Guid accountId);
|
||||
Task ToggleFavoriteAsync(Guid categoryId, bool isFavorite);
|
||||
Task UpdateRemoteIdAsync(Guid categoryId, string remoteId);
|
||||
Task ReplaceCategoriesAsync(Guid accountId, IEnumerable<MailCategory> categories);
|
||||
Task ReplaceMailAssignmentsAsync(Guid accountId, Guid mailCopyUniqueId, IEnumerable<string> categoryNames);
|
||||
Task AssignCategoryAsync(Guid categoryId, IEnumerable<Guid> mailCopyUniqueIds);
|
||||
Task UnassignCategoryAsync(Guid categoryId, IEnumerable<Guid> mailCopyUniqueIds);
|
||||
Task<List<MailCategory>> GetCategoriesForMailAsync(Guid accountId, IEnumerable<Guid> mailCopyUniqueIds);
|
||||
Task<List<Guid>> GetAssignedCategoryIdsForAllAsync(IEnumerable<Guid> mailCopyUniqueIds);
|
||||
Task<List<string>> GetCategoryNamesForMailAsync(Guid mailCopyUniqueId);
|
||||
Task<List<MailCopy>> GetMailCopiesForCategoryAsync(Guid categoryId);
|
||||
Task<List<UnreadCategoryCountResult>> GetUnreadCategoryCountResultsAsync(IEnumerable<Guid> accountIds);
|
||||
}
|
||||
Reference in New Issue
Block a user