public Stream < LsQuestion > getQuestionsFromGroup ( int surveyId , int groupId ) throws LimesurveyRCException { LsApiBody . LsApiParams params = getParamsWithKey ( surveyId ) ; params . setGroupId ( groupId ) ; JsonElement result = callRC ( new LsApiBody ( "list_questions" , params ) ) ; List < LsQuestion > questions = gson . fromJson ( result , new TypeToken < List < LsQuestion > > ( ) { } . getType ( ) ) ; return questions . stream ( ) . sorted ( Comparator . comparing ( LsQuestion :: getOrder ) ) ; }
Gets questions from a group . The questions are ordered using the question_order field .