1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 10:13:31 +00:00

sync service abstraction

This commit is contained in:
Kyle Spearrin
2018-02-08 10:49:00 -05:00
parent 78088acac7
commit 9cd74af2df
2 changed files with 8 additions and 8 deletions

View File

@@ -1,9 +1,9 @@
export interface SyncService {
export abstract class SyncService {
syncInProgress: boolean;
getLastSync(): Promise<Date>;
setLastSync(date: Date): Promise<any>;
syncStarted(): void;
syncCompleted(successfully: boolean): void;
fullSync(forceSync: boolean): Promise<boolean>;
getLastSync: () => Promise<Date>;
setLastSync: (date: Date) => Promise<any>;
syncStarted: () => void;
syncCompleted: (successfully: boolean) => void;
fullSync: (forceSync: boolean) => Promise<boolean>;
}