mirror of
https://github.com/bitwarden/mobile
synced 2026-01-05 10:03:26 +00:00
sync service
This commit is contained in:
19
src/Core/Abstractions/ISyncService.cs
Normal file
19
src/Core/Abstractions/ISyncService.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Bit.Core.Models.Response;
|
||||
|
||||
namespace Bit.Core.Abstractions
|
||||
{
|
||||
public interface ISyncService
|
||||
{
|
||||
bool SyncInProgress { get; set; }
|
||||
|
||||
Task<bool> FullSyncAsync(bool forceSync);
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user