use of teammates.common.datatransfer.attributes.FeedbackResponseCommentAttributes in project teammates by TEAMMATES.
the class StudentFeedbackResultsPageData method createStudentFeedbackResultsResponseComments.
/**
* Creates a list of comments for a feedback results response.
* @param feedbackResponseId Response ID for which comments are created
* @return Comments for the response
*/
private List<FeedbackResponseCommentRow> createStudentFeedbackResultsResponseComments(String feedbackResponseId) {
List<FeedbackResponseCommentRow> comments = new ArrayList<>();
List<FeedbackResponseCommentAttributes> commentsBundle = bundle.responseComments.get(feedbackResponseId);
if (commentsBundle != null) {
for (FeedbackResponseCommentAttributes comment : commentsBundle) {
comments.add(new FeedbackResponseCommentRow(comment, comment.giverEmail, bundle.instructorEmailNameTable, bundle.getTimeZone()));
}
}
return comments;
}
Aggregations