* @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.operation.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.bugIDStatus.toString()) );
reportTCResultResponse.setCustomFieldStatus( getBoolean(map, TestLinkResponseParams.customFieldStatus.toString()) );
}
}
}
return reportTCResultResponse;