1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-06 10:34:07 +00:00

filtered results for groupings and favorites

This commit is contained in:
Kyle Spearrin
2017-11-27 09:47:49 -05:00
parent 09412f0b78
commit 4879d906d9
7 changed files with 91 additions and 12 deletions

View File

@@ -19,6 +19,13 @@ namespace Bit.App.Repositories
return Task.FromResult(cipherCollections);
}
public Task<IEnumerable<CipherCollectionData>> GetAllByUserIdCollectionAsync(string userId, string collectionId)
{
var cipherCollections = Connection.Table<CipherCollectionData>().Where(
f => f.UserId == userId && f.CollectionId == collectionId).Cast<CipherCollectionData>();
return Task.FromResult(cipherCollections);
}
public virtual Task InsertAsync(CipherCollectionData obj)
{
Connection.Insert(obj);