snappymail/dev/Models/OpenPgpKeyModel.js

33 lines
838 B
JavaScript
Raw Normal View History

/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
/**
* @param {string} iIndex
2014-03-21 00:05:35 +08:00
* @param {string} sGuID
* @param {string} sID
* @param {string} sUserID
2014-03-21 07:47:13 +08:00
* @param {string} sEmail
* @param {boolean} bIsPrivate
* @param {string} sArmor
* @constructor
*/
2014-03-21 07:47:13 +08:00
function OpenPgpKeyModel(iIndex, sGuID, sID, sUserID, sEmail, bIsPrivate, sArmor)
{
this.index = iIndex;
this.id = sID;
2014-03-21 00:05:35 +08:00
this.guid = sGuID;
this.user = sUserID;
2014-03-21 07:47:13 +08:00
this.email = sEmail;
this.armor = sArmor;
this.isPrivate = !!bIsPrivate;
this.deleteAccess = ko.observable(false);
}
OpenPgpKeyModel.prototype.index = 0;
OpenPgpKeyModel.prototype.id = '';
2014-03-21 00:05:35 +08:00
OpenPgpKeyModel.prototype.guid = '';
OpenPgpKeyModel.prototype.user = '';
2014-03-21 07:47:13 +08:00
OpenPgpKeyModel.prototype.email = '';
OpenPgpKeyModel.prototype.armor = '';
OpenPgpKeyModel.prototype.isPrivate = false;