Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
46
gaia/apps/settings/js/modules/apn/apn_item.js
Executable file
46
gaia/apps/settings/js/modules/apn/apn_item.js
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
/**
|
||||
* ApnItem is a wrapper of apn objects.
|
||||
*
|
||||
* @module modules/apn/apn_item
|
||||
*/
|
||||
define(function(require) {
|
||||
'use strict';
|
||||
|
||||
var APN_CATEGORY = {
|
||||
PRESET: 'preset',
|
||||
CUSTOM: 'custom',
|
||||
EU: 'eu'
|
||||
};
|
||||
|
||||
/**
|
||||
* @class ApnItem
|
||||
* @params {String} id
|
||||
* @params {String} category
|
||||
* @params {Object} apn
|
||||
* @returns {ApnItem}
|
||||
*/
|
||||
function ApnItem(id, category, apn) {
|
||||
this._id = id;
|
||||
this._category = category;
|
||||
this._apn = apn;
|
||||
}
|
||||
|
||||
ApnItem.prototype = {
|
||||
get id() {
|
||||
return this._id;
|
||||
},
|
||||
get category() {
|
||||
return this._category;
|
||||
},
|
||||
get apn() {
|
||||
return this._apn;
|
||||
}
|
||||
};
|
||||
|
||||
var constructor = function ctor_apn_item(id, category, apn) {
|
||||
return new ApnItem(id, category, apn);
|
||||
};
|
||||
constructor.APN_CATEGORY = APN_CATEGORY;
|
||||
|
||||
return constructor;
|
||||
});
|
||||
Loading…
Reference in a new issue