private static WritableMap setCDMAInfo()

in packages/@fbcmobile-signalscan/android/src/main/java/com/fbc/signalscan/CellScanResultsModule.java [351:362]


  private static WritableMap setCDMAInfo(CellInfoCdma cell) {
    WritableMap fields = Arguments.createMap();
    fields.putString(CELL_FIELD_TYPE, CDMA);
    final CellSignalStrengthCdma cdma = cell.getCellSignalStrength();
    final CellIdentityCdma identityCdma = cell.getCellIdentity();
    fields.putString(CELL_FIELD_ID, Integer.toString(identityCdma.getBasestationId()));
    fields.putInt(CELL_FIELD_DBM, cdma.getDbm() != Integer.MAX_VALUE ? cdma.getDbm() : 0);
    fields.putString(CELL_FIELD_BASE_STATION_ID, Integer.toString(identityCdma.getBasestationId()));
    fields.putString(CELL_FIELD_NETWORK_ID, Integer.toString(identityCdma.getNetworkId()));
    fields.putString(CELL_FIELD_SYSTEM_ID, Integer.toString(identityCdma.getSystemId()));
    return fields;
  }