2014-06-07 21:30:19 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
this.EXPORTED_SYMBOLS = ["MobileIdentityUIGluePhoneInfo",
|
|
|
|
"MobileIdentityUIGluePromptResult"];
|
|
|
|
|
|
|
|
this.MobileIdentityUIGluePhoneInfo = function (aMsisdn, aOperator, aServiceId,
|
2014-09-23 21:58:15 +04:00
|
|
|
aIccId, aPrimary) {
|
2014-06-07 21:30:19 +04:00
|
|
|
this.msisdn = aMsisdn;
|
|
|
|
this.operator = aOperator;
|
|
|
|
this.serviceId = aServiceId;
|
2014-09-23 21:58:15 +04:00
|
|
|
this.iccId = aIccId;
|
2014-06-07 21:30:19 +04:00
|
|
|
// A phone number is considered "external" when it doesn't or we don't know
|
|
|
|
// if it does belong to any of the device SIM cards.
|
2014-09-23 21:58:15 +04:00
|
|
|
this.external = !!aIccId;
|
2014-06-07 21:30:19 +04:00
|
|
|
this.primary = aPrimary;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.MobileIdentityUIGluePhoneInfo.prototype = {};
|
|
|
|
|
|
|
|
this.MobileIdentityUIGluePromptResult = function (aPhoneNumber, aPrefix, aMcc,
|
|
|
|
aServiceId) {
|
|
|
|
this.phoneNumber = aPhoneNumber;
|
|
|
|
this.prefix = aPrefix;
|
|
|
|
this.mcc = aMcc;
|
|
|
|
this.serviceId = aServiceId;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.MobileIdentityUIGluePromptResult.prototype = {};
|