public boolean isSurveyActive ( int surveyId ) throws LimesurveyRCException { LsApiBody . LsApiParams params = getParamsWithKey ( surveyId ) ; List < String > surveySettings = new ArrayList <> ( ) ; surveySettings . add ( "active" ) ; params . setSurveySettings ( surveySettings ) ; return "Y" . equals ( callRC ( new LsApiBody ( "get_survey_properties" , params ) ) . getAsJsonObject ( ) . get ( "active" ) . getAsString ( ) ) ; }
Check if a survey is active .