mirror of
https://github.com/bitwarden/mobile
synced 2026-01-06 10:34:07 +00:00
sync service
This commit is contained in:
@@ -22,7 +22,7 @@ namespace Bit.Core.Abstractions
|
||||
Task<CipherResponse> GetCipherAsync(string id);
|
||||
Task<FolderResponse> GetFolderAsync(string id);
|
||||
Task<ProfileResponse> GetProfileAsync();
|
||||
Task<SyncResponse> GetSyncAsync(string id);
|
||||
Task<SyncResponse> GetSyncAsync();
|
||||
Task PostAccountKeysAsync(KeysRequest request);
|
||||
Task<CipherResponse> PostCipherAsync(CipherRequest request);
|
||||
Task<CipherResponse> PostCipherCreateAsync(CipherCreateRequest request);
|
||||
|
||||
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