Bitwarden-app-android-iphon.../src/Core/Abstractions/ISyncService.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
718 B
C#
Raw Normal View History

2019-04-17 18:12:43 +02:00
using System;
using System.Threading.Tasks;
using Bit.Core.Models.Response;
namespace Bit.Core.Abstractions
{
public interface ISyncService
{
bool SyncInProgress { get; set; }
2019-10-15 17:05:56 +02:00
Task<bool> FullSyncAsync(bool forceSync, bool allowThrowOnError = false);
2019-04-17 18:12:43 +02:00
Task<DateTime?> GetLastSyncAsync();
Task SetLastSyncAsync(DateTime date);
Task<bool> SyncDeleteCipherAsync(SyncCipherNotification notification);
Task<bool> SyncDeleteFolderAsync(SyncFolderNotification notification);
Task<bool> SyncUpsertCipherAsync(SyncCipherNotification notification, bool isEdit);
Task<bool> SyncUpsertFolderAsync(SyncFolderNotification notification, bool isEdit);
}
2019-10-15 17:05:56 +02:00
}