mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-26 09:03:48 +08:00
50 lines
No EOL
1.1 KiB
JavaScript
50 lines
No EOL
1.1 KiB
JavaScript
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
var
|
|
_ = require('_'),
|
|
ko = require('ko'),
|
|
|
|
AbstractModel = require('Knoin/AbstractModel')
|
|
;
|
|
|
|
/**
|
|
* @param {string} iIndex
|
|
* @param {string} sGuID
|
|
* @param {string} sID
|
|
* @param {string} sUserID
|
|
* @param {string} sEmail
|
|
* @param {boolean} bIsPrivate
|
|
* @param {string} sArmor
|
|
* @constructor
|
|
*/
|
|
function OpenPgpKeyModel(iIndex, sGuID, sID, sUserID, sEmail, bIsPrivate, sArmor)
|
|
{
|
|
AbstractModel.call(this, 'OpenPgpKeyModel');
|
|
|
|
this.index = iIndex;
|
|
this.id = sID;
|
|
this.guid = sGuID;
|
|
this.user = sUserID;
|
|
this.email = sEmail;
|
|
this.armor = sArmor;
|
|
this.isPrivate = !!bIsPrivate;
|
|
|
|
this.deleteAccess = ko.observable(false);
|
|
}
|
|
|
|
_.extend(OpenPgpKeyModel.prototype, AbstractModel.prototype);
|
|
|
|
OpenPgpKeyModel.prototype.index = 0;
|
|
OpenPgpKeyModel.prototype.id = '';
|
|
OpenPgpKeyModel.prototype.guid = '';
|
|
OpenPgpKeyModel.prototype.user = '';
|
|
OpenPgpKeyModel.prototype.email = '';
|
|
OpenPgpKeyModel.prototype.armor = '';
|
|
OpenPgpKeyModel.prototype.isPrivate = false;
|
|
|
|
module.exports = OpenPgpKeyModel;
|
|
|
|
}()); |