mirror of
https://github.com/bitwarden/mobile
synced 2025-12-27 05:33:23 +00:00
* [SG-831] Pull to refresh forces refresh. * [SG-831] Expose sync login request method to be used independently * [SG-831] Change sync order
21 lines
857 B
C#
21 lines
857 B
C#
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, bool allowThrowOnError = false);
|
|
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);
|
|
// Passwordless code will be moved to an independent service in future techdept
|
|
Task SyncPasswordlessLoginRequestsAsync();
|
|
}
|
|
}
|