mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-05 06:22:52 +08:00
23 lines
434 B
JavaScript
23 lines
434 B
JavaScript
import ko from 'ko';
|
|
|
|
import { AbstractModel } from 'Knoin/AbstractModel';
|
|
|
|
export class TemplateModel extends AbstractModel {
|
|
/**
|
|
* @param {string} id
|
|
* @param {string} name
|
|
* @param {string} body
|
|
*/
|
|
constructor(id = '', name = '', body = '') {
|
|
super();
|
|
|
|
this.id = id;
|
|
this.name = name;
|
|
this.body = body;
|
|
this.populated = true;
|
|
|
|
this.deleteAccess = ko.observable(false);
|
|
}
|
|
|
|
// static reviveFromJson(json) {}
|
|
}
|