FenixCourse course = new FenixCourse(infoExecutionCourse.getExecutionCourse());
roomEvent = new FenixRoomEvent.LessonEvent(start, end, weekday, day, period, info, course);
} else if (showOccupation instanceof InfoWrittenEvaluation) {
InfoWrittenEvaluation infoWrittenEvaluation = (InfoWrittenEvaluation) showOccupation;
List<FenixCourse> courses = new ArrayList<>();
for (int iterEC = 0; iterEC < infoWrittenEvaluation.getAssociatedExecutionCourse().size(); iterEC++) {
InfoExecutionCourse infoEC = infoWrittenEvaluation.getAssociatedExecutionCourse().get(iterEC);
courses.add(new FenixCourse(infoEC.getExecutionCourse()));
}
String start = null;
String end = null;
String weekday = null;
if (infoWrittenEvaluation instanceof InfoExam) {
InfoExam infoExam = (InfoExam) infoWrittenEvaluation;
start = infoExam.getBeginningHour();
end = infoExam.getEndHour();
weekday = infoWrittenEvaluation.getDiaSemana().getDiaSemanaString();
FenixPeriod period = new FenixPeriod(day + " " + start, day + " " + end);
Integer season = infoExam.getSeason().getSeason();