services/mobileid/MobileIdentityUIGlueCommon.jsm
author Wes Kocher <wkocher@mozilla.com>
Mon, 12 Jan 2015 14:48:13 -0800
changeset 252216 fdb407e3ab06284ddb3bfff43b662d8b87c546f9
parent 231296 5f470ac9f032d7eeb8c01d016fe1cc5b987813cd
permissions -rw-r--r--
Backout 58cb6ed02553 (bug 1120622, bug 1120620, bug 1119068, bug 1119268, bug 1119264, bug 1119261) for b2g build bustage on a CLOSED TREE

/* 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,
                                               aIccId, aPrimary) {
  this.msisdn = aMsisdn;
  this.operator = aOperator;
  this.serviceId = aServiceId;
  this.iccId = aIccId;
  // 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.
  this.external = !!aIccId;
  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 = {};