/** * Constructor to create a DepositFindRequest * * @param id Unique request name * @param depositFindIn DepositObjectFilter for DepositFindRequest */ @JsonCreator public DepositFindRequest( @JsonProperty("RequestId") String id, @JsonProperty("Deposit") DepositObjectFilter depositFindIn) { super(id, "DepositFind"); if (depositFindIn != null) { Integer index = depositFindIn.getIndex(); if (index != null) addInput("Index", index); addInput( "Deposit", DepositObjectHelper.toMap(depositFindIn, new HashMap(), "Deposit").get("Deposit")); } }
/** * Constructor to create a DepositFindNoOpRequest * * @param id Unique request name * @param noOpIn Simulated response object */ public DepositFindNoOpRequest(String id, DepositObjectDataList noOpIn) { super(id, "DepositFindNoOpRequest"); 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] = DepositObjectHelper.toMap(noOpIn.getArray()[i], null); addInput("Deposit", noOpIn); } addInput("Deposit", mapList); } }
/** * Retrieves the DepositObjectDataList that results from the DepositFindRequest call * * @return DepositObjectDataList resulting from udt call */ public DepositObjectDataList getOutput() { return DepositObjectHelper.fromMapList(outputMap, "DepositList"); }