1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-06 02:23:57 +00:00

repurpose vaultlistpage to also serve favorites page

This commit is contained in:
Kyle Spearrin
2016-06-14 23:23:05 -04:00
parent 3c14eaf3f8
commit a238523551
6 changed files with 26 additions and 6 deletions

View File

@@ -18,5 +18,11 @@ namespace Bit.App.Repositories
var sites = Connection.Table<SiteData>().Where(f => f.UserId == userId).Cast<SiteData>();
return Task.FromResult(sites);
}
public Task<IEnumerable<SiteData>> GetAllByUserIdAsync(string userId, bool favorite)
{
var sites = Connection.Table<SiteData>().Where(f => f.UserId == userId && f.Favorite == favorite).Cast<SiteData>();
return Task.FromResult(sites);
}
}
}