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 ICollectionService { Task ClearAsync(string userId); void ClearCache(); Task> DecryptManyAsync(List collections); Task DeleteAsync(string id); Task EncryptAsync(CollectionView model); Task> GetAllAsync(); Task> GetAllDecryptedAsync(); Task>> GetAllNestedAsync(List collections = null); Task GetAsync(string id); Task> GetNestedAsync(string id); Task ReplaceAsync(Dictionary collections); Task UpsertAsync(CollectionData collection); Task UpsertAsync(List collection); } }