コード例 #1
0
 /**
  * Constructor to create a ServiceZoneFindNoOpRequest
  *
  * @param id Unique request name
  * @param noOpIn Simulated response object
  */
 public ServiceZoneFindNoOpRequest(String id, ServiceZoneObjectDataList noOpIn) {
   super(id, "ServiceZoneFindNoOpRequest");
   if (noOpIn != null) {
     Map mapList = new HashMap();
     Map[] mapArray = null;
     mapList.put("Count", noOpIn.getLength());
     mapList.put("TotalCount", noOpIn.getTotalCount());
     mapList.put("Index", noOpIn.getIndex());
     mapArray = new HashMap[noOpIn.getLength()];
     for (int i = 0; i < noOpIn.getLength(); i++) {
       mapArray[i] = ServiceZoneObjectHelper.toMap(noOpIn.getArray()[i], null);
       addInput("ServiceZone", noOpIn);
     }
     addInput("ServiceZone", mapList);
   }
 }
コード例 #2
0
 /**
  * Retrieves the ServiceZoneObjectDataList passed into the constructor
  *
  * @return Simulated response
  */
 public ServiceZoneObjectDataList getOutput() {
   return ServiceZoneObjectHelper.fromMapList(outputMap, "ServiceZoneList");
 }