1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-09-28 03:57:43 +02:00
bitwarden-mobile/src/Core/Abstractions/ISearchService.cs

20 lines
651 B
C#
Raw Normal View History

2019-04-24 20:52:26 +02:00
using System;
using System.Collections.Generic;
2019-05-07 04:35:42 +02:00
using System.Threading;
2019-04-24 20:52:26 +02:00
using System.Threading.Tasks;
using Bit.Core.Models.View;
namespace Bit.Core.Abstractions
{
public interface ISearchService
{
void ClearIndex();
Task IndexCiphersAsync();
bool IsSearchable(string query);
Task<List<CipherView>> SearchCiphersAsync(string query, Func<CipherView, bool> filter = null,
List<CipherView> ciphers = null, CancellationToken ct = default);
2019-05-07 04:35:42 +02:00
List<CipherView> SearchCiphersBasic(List<CipherView> ciphers, string query,
CancellationToken ct = default, bool deleted = false);
2019-04-24 20:52:26 +02:00
}
}