2016-07-07 05:03:30 +08:00
|
|
|
import ko from 'ko';
|
|
|
|
|
2019-07-05 03:19:24 +08:00
|
|
|
import { AbstractModel } from 'Knoin/AbstractModel';
|
2016-07-07 05:03:30 +08:00
|
|
|
|
2021-01-22 23:32:08 +08:00
|
|
|
export class TemplateModel extends AbstractModel {
|
2016-07-07 05:03:30 +08:00
|
|
|
/**
|
|
|
|
* @param {string} id
|
|
|
|
* @param {string} name
|
|
|
|
* @param {string} body
|
|
|
|
*/
|
2020-10-20 23:39:00 +08:00
|
|
|
constructor(id = '', name = '', body = '') {
|
2020-10-19 01:19:45 +08:00
|
|
|
super();
|
2016-07-07 05:03:30 +08:00
|
|
|
|
|
|
|
this.id = id;
|
|
|
|
this.name = name;
|
|
|
|
this.body = body;
|
|
|
|
this.populated = true;
|
|
|
|
|
|
|
|
this.deleteAccess = ko.observable(false);
|
|
|
|
}
|
|
|
|
|
2020-10-20 23:39:00 +08:00
|
|
|
// static reviveFromJson(json) {}
|
2016-07-07 05:03:30 +08:00
|
|
|
}
|