using System.Collections.Generic; using System.Threading.Tasks; using Bit.Core.Models.Data; using Bit.Core.Models.Domain; using Bit.Core.Models.View; namespace Bit.Core.Abstractions { public interface IFolderService { Task ClearAsync(string userId); void ClearCache(); Task DeleteAsync(string id); Task DeleteWithServerAsync(string id); Task EncryptAsync(FolderView model, SymmetricCryptoKey key = null); Task> GetAllAsync(); Task> GetAllDecryptedAsync(); Task>> GetAllNestedAsync(); Task GetAsync(string id); Task> GetNestedAsync(string id); Task ReplaceAsync(Dictionary folders); Task SaveWithServerAsync(Folder folder); Task UpsertAsync(FolderData folder); Task UpsertAsync(List folder); } }