2017-11-25 00:11:40 +03:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Bit.App.Models.Data;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Bit.App.Abstractions
|
|
|
|
|
{
|
|
|
|
|
public interface ICipherCollectionRepository
|
|
|
|
|
{
|
|
|
|
|
Task<IEnumerable<CipherCollectionData>> GetAllByUserIdAsync(string userId);
|
2017-11-27 17:47:49 +03:00
|
|
|
|
Task<IEnumerable<CipherCollectionData>> GetAllByUserIdCollectionAsync(string userId, string collectionId);
|
2017-11-25 00:11:40 +03:00
|
|
|
|
Task InsertAsync(CipherCollectionData obj);
|
|
|
|
|
Task DeleteAsync(CipherCollectionData obj);
|
|
|
|
|
Task DeleteByUserIdAsync(string userId);
|
|
|
|
|
}
|
|
|
|
|
}
|