2016-07-29 04:41:45 +03:00
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
2016-05-06 07:17:38 +03:00
|
|
|
|
|
|
|
|
|
namespace Bit.App.Abstractions
|
|
|
|
|
{
|
|
|
|
|
public interface ISyncService
|
|
|
|
|
{
|
2016-07-12 06:55:16 +03:00
|
|
|
|
bool SyncInProgress { get; }
|
2016-06-30 04:59:18 +03:00
|
|
|
|
Task<bool> SyncAsync(string id);
|
|
|
|
|
Task<bool> SyncDeleteFolderAsync(string id);
|
|
|
|
|
Task<bool> SyncDeleteSiteAsync(string id);
|
|
|
|
|
Task<bool> FullSyncAsync();
|
2016-07-29 04:41:45 +03:00
|
|
|
|
Task<bool> IncrementalSyncAsync(TimeSpan syncThreshold);
|
2016-06-30 04:59:18 +03:00
|
|
|
|
Task<bool> IncrementalSyncAsync();
|
2016-05-06 07:17:38 +03:00
|
|
|
|
}
|
2016-06-30 04:59:18 +03:00
|
|
|
|
}
|