mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 23:54:06 +03:00
23 lines
642 B
C#
23 lines
642 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using Bit.App.Abstractions;
|
|||
|
using Bit.App.Models.Data;
|
|||
|
|
|||
|
namespace Bit.App.Repositories
|
|||
|
{
|
|||
|
public class FolderRepository : Repository<FolderData, string>, IFolderRepository
|
|||
|
{
|
|||
|
public FolderRepository(ISqlService sqlService)
|
|||
|
: base(sqlService)
|
|||
|
{ }
|
|||
|
|
|||
|
public Task<IEnumerable<FolderData>> GetAllByUserIdAsync(string userId)
|
|||
|
{
|
|||
|
var folders = Connection.Table<FolderData>().Where(f => f.UserId == userId).Cast<FolderData>();
|
|||
|
return Task.FromResult(folders);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|