snappymail/dev/Models/AccountModel.js

34 lines
662 B
JavaScript
Raw Normal View History

/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
2014-08-25 15:10:51 +08:00
'use strict';
2014-08-20 23:03:12 +08:00
(function (module) {
var
2014-08-25 15:10:51 +08:00
ko = require('../External/ko.js')
2014-08-20 23:03:12 +08:00
;
/**
* @param {string} sEmail
* @param {boolean=} bCanBeDelete = true
* @constructor
*/
function AccountModel(sEmail, bCanBeDelete)
{
this.email = sEmail;
this.deleteAccess = ko.observable(false);
this.canBeDalete = ko.observable(bCanBeDelete);
}
AccountModel.prototype.email = '';
/**
* @return {string}
*/
AccountModel.prototype.changeAccountLink = function ()
{
2014-08-25 15:10:51 +08:00
return require('../Common/LinkBuilder.js').change(this.email);
2014-08-20 23:03:12 +08:00
};
module.exports = AccountModel;
}(module));