/** * Constructor to create a CdrDataDucFindNoOpRequest * * @param id Unique request name * @param noOpIn Simulated response object */ public CdrDataDucFindNoOpRequest(String id, CdrDataDucObjectDataList noOpIn) { super(id, "CdrDataDucFindNoOpRequest"); 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] = CdrDataDucObjectHelper.toMap(noOpIn.getArray()[i], null); addInput("CdrDataDuc", noOpIn); } addInput("CdrDataDuc", mapList); } }
/** * Retrieves the CdrDataDucObjectDataList passed into the constructor * * @return Simulated response */ public CdrDataDucObjectDataList getOutput() { return CdrDataDucObjectHelper.fromMapList(outputMap, "CdrDataDucList"); }