use of com.serotonin.m2m2.web.mvc.rest.v1.model.comment.UserCommentModel in project ma-modules-public by infiniteautomation.
the class EventInstanceModel method getComments.
@JsonGetter
public List<UserCommentModel> getComments() {
List<UserCommentModel> commentModels = new ArrayList<UserCommentModel>();
List<UserCommentVO> comments = this.data.getEventComments();
if (comments == null)
return null;
for (UserCommentVO comment : comments) {
commentModels.add(new UserCommentModel(comment));
}
return commentModels;
}
Aggregations