示例#1
0
  public void reserveMdn() throws ReserveException {
    OldNetworkService networkImpl = new OldNetworkService();
    OldNetworkInfo networkInfo = networkImpl.reserveMdn(null, null, null);

    if (networkInfo != null) {
      System.out.println("MDN      :: " + networkInfo.getMdn());
      System.out.println("MSID     :: " + networkInfo.getMsid());
      System.out.println("EffDate  :: " + networkInfo.getEffectivedate());
      System.out.println("EffTime  :: " + networkInfo.getEffectivetime());
      System.out.println("Status   :: " + networkInfo.getStatus());
    }
  }
示例#2
0
  public void activateMdn() throws NetworkQueryException {
    OldNetworkService networkImpl = new OldNetworkService();
    OldNetworkInfo networkInfo = new OldNetworkInfo();

    networkInfo.setMdn("2138041391");
    networkInfo.setMsid("000002139261688");
    networkInfo.setEsnmeiddec("09608582996");

    networkImpl.connect(networkInfo);

    networkImpl.getNetworkInfo(null, "2138041391");
  }
示例#3
0
  private void expireSubscription(String MDN) throws DisconnectException, NetworkQueryException {
    // ApiGeneralResponseHolder response = sprintApi.apIexpireSubscription(MDN,
    // null);
    // System.out.println("Response :: "+response.getStatusMessage());
    // System.out.println("APIMessage         :: "+response.getApiResponseMessage());
    // System.out.println("ResponseMessage    :: "+response.getResponseMessage());

    OldNetworkService networkImpl = new OldNetworkService();

    OldNetworkInfo networkInfo = networkImpl.getNetworkInfo(null, MDN);
    // System.out.println("MDN      :: "+networkInfo.getMdn());
    // System.out.println("MSID     :: "+networkInfo.getMsid());
    // System.out.println("EffDate  :: "+networkInfo.getEffectivedate());
    // System.out.println("EffTime  :: "+networkInfo.getEffectivetime());
    // System.out.println("ExpDate  :: "+networkInfo.getExpirationdate());
    // System.out.println("ExpTime  :: "+networkInfo.getExpirationtime());
    // System.out.println("ESNDec   :: "+networkInfo.getEsnmeiddec());
    // System.out.println("ESNHex   :: "+networkInfo.getEsnmeidhex());
    // System.out.println("Status   :: "+networkInfo.getStatus());

    networkImpl.disconnect(networkInfo);
  }