* @param map
* @return ReportTCResultResponse object.
*/
public static final ReportTCResultResponse getReportTCResultResponse(
Map<String, Object> map) {
ReportTCResultResponse reportTCResultResponse = null;
if (map != null && map.size() > 0) {
Object o = map.get(TestLinkResponseParams.ID.toString());
if (o != null) {
Integer id = Integer.parseInt(o.toString());
if (id > 0) {
reportTCResultResponse = new ReportTCResultResponse();
reportTCResultResponse.setExecutionId(id);
reportTCResultResponse.setOperation(getString(map,
TestLinkResponseParams.OPERATIONS.toString()));
reportTCResultResponse.setOverwrite(getBoolean(map,
TestLinkResponseParams.OVERWRITE.toString()));
reportTCResultResponse.setStatus(getBoolean(map,
TestLinkResponseParams.STATUS.toString()));
reportTCResultResponse.setMessage(getString(map,
TestLinkResponseParams.MESSAGE.toString()));
reportTCResultResponse.setBugIDStatus(getBoolean(map,
TestLinkResponseParams.BUG_ID_STATUS.toString()));
reportTCResultResponse.setCustomFieldStatus(getBoolean(map,
TestLinkResponseParams.CUSTOM_FIELD_STATUS
.toString()));
}
}