mirror of
https://github.com/bitwarden/mobile
synced 2025-12-19 01:33:22 +00:00
interfaces
This commit is contained in:
25
src/Core/Abstractions/ICollectionService.cs
Normal file
25
src/Core/Abstractions/ICollectionService.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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<List<CollectionView>> DecryptManyAsync(List<Collection> collections);
|
||||
Task DeleteAsync(string id);
|
||||
Task<Collection> EncryptAsync(CollectionView model);
|
||||
Task<List<Collection>> GetAllAsync();
|
||||
Task<List<CollectionView>> GetAllDecryptedAsync();
|
||||
Task<List<TreeNode<CollectionView>>> GetAllNestedAsync(List<CollectionView> collections = null);
|
||||
Task<Collection> GetAsync(string id);
|
||||
Task<TreeNode<CollectionView>> GetNestedAsync(string id);
|
||||
Task ReplaceAsync(Dictionary<string, CollectionData> collections);
|
||||
Task UpsertAsync(CollectionData collection);
|
||||
Task UpsertAsync(List<CollectionData> collection);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user