mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-13 19:23:33 +08:00
50 lines
No EOL
738 B
JavaScript
50 lines
No EOL
738 B
JavaScript
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
var
|
|
_ = require('_'),
|
|
ko = require('ko'),
|
|
|
|
AbstractModel = require('Knoin/AbstractModel')
|
|
;
|
|
|
|
/**
|
|
* @constructor
|
|
*
|
|
* @param {string} sID
|
|
* @param {string} sName
|
|
* @param {string} sBody
|
|
*/
|
|
function TemplateModel(sID, sName, sBody)
|
|
{
|
|
AbstractModel.call(this, 'TemplateModel');
|
|
|
|
this.id = sID;
|
|
this.name = sName;
|
|
this.body = sBody;
|
|
|
|
this.deleteAccess = ko.observable(false);
|
|
}
|
|
|
|
_.extend(TemplateModel.prototype, AbstractModel.prototype);
|
|
|
|
/**
|
|
* @type {string}
|
|
*/
|
|
TemplateModel.prototype.id = '';
|
|
|
|
/**
|
|
* @type {string}
|
|
*/
|
|
TemplateModel.prototype.name = '';
|
|
|
|
/**
|
|
* @type {string}
|
|
*/
|
|
TemplateModel.prototype.body = '';
|
|
|
|
module.exports = TemplateModel;
|
|
|
|
}()); |