2016-04-21 15:32:11 +02:00
|
|
|
import * as rest from '../rest.js';
|
2015-07-15 15:06:18 +02:00
|
|
|
|
2016-04-21 15:44:20 +02:00
|
|
|
export default class Update {
|
2016-04-21 15:52:23 +02:00
|
|
|
constructor(api) {
|
|
|
|
this.api = api;
|
|
|
|
}
|
|
|
|
status() {
|
|
|
|
return rest.get(`${ this.api }update/status`);
|
|
|
|
}
|
|
|
|
download() {
|
|
|
|
//not tested
|
|
|
|
return rest.post(`${ this.api }update/download`, {});
|
|
|
|
}
|
|
|
|
install() {
|
|
|
|
//not tested
|
|
|
|
return rest.post(`${ this.api }update/install`, {});
|
|
|
|
}
|
|
|
|
clear() {
|
|
|
|
//not tested
|
|
|
|
return rest.post(`${ this.api }update/clear`, {});
|
|
|
|
}
|
2015-10-12 12:33:33 +02:00
|
|
|
}
|