Mailspring/packages/nylas-sync/syncback_tasks/syncback-task.js

20 lines
378 B
JavaScript
Raw Normal View History

2016-06-30 01:13:48 +08:00
class SyncbackTask {
constructor(account, syncbackRequest) {
this._account = account;
this._syncbackRequest = syncbackRequest;
}
syncbackRequestObject() {
return this._syncbackRequest;
}
description() {
throw new Error("Must return a description")
}
run() {
throw new Error("Must implement a run method")
}
}
module.exports = SyncbackTask