-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathIOdDatabase.cs
34 lines (22 loc) · 855 Bytes
/
IOdDatabase.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using FileMasta.Core.Models;
namespace FileMasta.Core
{
internal interface IOdDatabase
{
Task<IEnumerable<DataItem>> SearchRecords(string name, string[] type, long minSize, DateTime minMTime, DateTime maxMTime);
Task<IEnumerable<DataItem>> SearchBookmarked(string name, string[] type, long minSize, DateTime minMTime, DateTime maxMTime);
long TotalFileCount { get; }
long SizeTotal { get; }
long DatabaseSize { get; }
IList<FileItem> Bookmarked { get; }
IEnumerable<string> SearchKeywords { get; }
void AddBookmark(FileItem file);
void RemoveBookmark(FileItem file);
bool IsBookmarked(FileItem file);
void RemoveAll();
void UpdateBookmarks();
}
}