Mailspring/packages/nylas-sync/syncback_tasks/syncback-task.js
2016-06-29 10:13:56 -07:00

19 lines
378 B
JavaScript

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