Skip to content
Snippets Groups Projects

Resolve "Notify students when they cannot be found by TA"

4 files
+ 61
1
Compare changes
  • Side-by-side
  • Inline

Files

@@ -138,4 +138,22 @@ public class NotificationService {
return notifications;
}
public Map<User, Notification> createNotFoundNotification(RequestEntity requestEntity, Request request) {
Map<User, Notification> notifications = new HashMap<>();
if (requestEntity.isGroup()) {
for (User user : ((Group) requestEntity).getMembers()) {
notifications.put(user, new Notification(user,
request.getLab().getCourse(), "Not Found",
"The TA was not able to find you. Please check if you filled in the correct room!",
100));
}
} else {
notifications.put((User) requestEntity, new Notification((User) requestEntity,
request.getLab().getCourse(), "Not Found",
"The TA was not able to find you. Please check if you filled in the correct room! Remember to respond to the TA when he/she calls your name!",
100));
}
return notifications;
}
}
Loading