1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

All: Moving sync target logic to SyncTarget classes

This commit is contained in:
Laurent Cozic
2017-11-24 18:59:16 +00:00
parent cc7cbc2ecf
commit 112609c5f1
17 changed files with 78 additions and 61 deletions

View File

@@ -30,25 +30,25 @@ class BaseSyncTarget {
return false;
}
name() {
throw new Error('Not implemented');
static id() {
throw new Error('id() not implemented');
}
label() {
throw new Error('Not implemented');
static label() {
throw new Error('label() not implemented');
}
async initSynchronizer() {
throw new Error('Not implemented');
throw new Error('initSynchronizer() not implemented');
}
initFileApi() {
throw new Error('Not implemented');
async initFileApi() {
throw new Error('initFileApi() not implemented');
}
fileApi() {
async fileApi() {
if (this.fileApi_) return this.fileApi_;
this.fileApi_ = this.initFileApi();
this.fileApi_ = await this.initFileApi();
return this.fileApi_;
}