/** * Constructor to create a CtcOfferFindNoOpRequest * * @param id Unique request name * @param noOpIn Simulated response object */ public CtcOfferFindNoOpRequest(String id, CtcOfferObjectDataList noOpIn) { super(id, "CtcOfferFindNoOpRequest"); 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] = CtcOfferObjectHelper.toMap(noOpIn.getArray()[i], null); addInput("CtcOffer", noOpIn); } addInput("CtcOffer", mapList); } }
public void translateToMap() { 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++) { noOpIn.getArray()[i].resetFlags(true, true); mapArray[i] = CtcOfferObjectHelper.toMap(noOpIn.getArray()[i], null); addInput("CtcOffer", noOpIn); } addInput("CtcOffer", mapList); } }
/** * Retrieves the CtcOfferObjectDataList passed into the constructor * * @return Simulated response */ public CtcOfferObjectDataList getOutput() { return CtcOfferObjectHelper.fromMapList(outputMap, "CtcOfferList"); }
public void translateFromMap() { noOpIn = CtcOfferObjectHelper.fromMapList(inputMap, "CtcOfferList"); }