Option undeer development optiion removed and enhanced the respoonse

This commit is contained in:
RIT Services
2026-08-21 08:15:10 +00:00
parent c13f3ea3d2
commit 024cef38c5
3 changed files with 63 additions and 4 deletions

View File

@@ -113,13 +113,27 @@ public class StudentMenuHandler {
break;
case "student_contact_department":
messageService.sendMessage(phoneNumber, "Contact Department is currently under development. Please check back later!");
messageService.sendMessage(phoneNumber, "❌ No such Faculty mentor is assigned.");
sendMainMenu(phoneNumber);
break;
case "student_academic_calendar":
messageService.sendMessage(phoneNumber, "❌ Academic calendar is not updated yet.");
sendMainMenu(phoneNumber);
break;
case "student_exam_schedule":
messageService.sendMessage(phoneNumber, "❌ Exam schedule is not updated yet.");
sendMainMenu(phoneNumber);
break;
case "student_circulars":
messageService.sendMessage(phoneNumber, "❌ Circulars & Notices are not updated yet.");
sendMainMenu(phoneNumber);
break;
default:
messageService.sendMessage(phoneNumber, "You selected an option that is currently under development. Please check back later!");
// Resend main menu
messageService.sendMessage(phoneNumber, "❌ Details are not updated yet.");
sendMainMenu(phoneNumber);
break;
}

View File

@@ -438,6 +438,21 @@ public class MessageFormatter {
}
}
boolean hasAnyCat1Marks = false;
if (targetArray != null && targetArray.size() > 0) {
for (JsonNode subject : targetArray) {
String co1 = subject.has("co1") ? subject.get("co1").asText().trim() : "";
if (!co1.isEmpty() && !co1.equalsIgnoreCase("N/A") && !co1.equalsIgnoreCase("null")) {
hasAnyCat1Marks = true;
break;
}
}
}
if (!hasAnyCat1Marks) {
return "📈 *CAT 1 MARKS REPORT*\n\n❌ CAT-1 marks are not updated yet.";
}
if (targetArray != null && targetArray.size() > 0) {
for (JsonNode subject : targetArray) {
String code = subject.has("code") ? subject.get("code").asText() : "";
@@ -484,6 +499,21 @@ public class MessageFormatter {
}
}
boolean hasAnyCat2Marks = false;
if (targetArray != null && targetArray.size() > 0) {
for (JsonNode subject : targetArray) {
String co2 = subject.has("co2") ? subject.get("co2").asText().trim() : "";
if (!co2.isEmpty() && !co2.equalsIgnoreCase("N/A") && !co2.equalsIgnoreCase("null")) {
hasAnyCat2Marks = true;
break;
}
}
}
if (!hasAnyCat2Marks) {
return "📈 *CAT 2 MARKS REPORT*\n\n❌ CAT-2 marks are not updated yet.";
}
if (targetArray != null && targetArray.size() > 0) {
for (JsonNode subject : targetArray) {
String code = subject.has("code") ? subject.get("code").asText() : "";
@@ -530,6 +560,21 @@ public class MessageFormatter {
}
}
boolean hasAnyCat3Marks = false;
if (targetArray != null && targetArray.size() > 0) {
for (JsonNode subject : targetArray) {
String co3 = subject.has("co3") ? subject.get("co3").asText().trim() : "";
if (!co3.isEmpty() && !co3.equalsIgnoreCase("N/A") && !co3.equalsIgnoreCase("null")) {
hasAnyCat3Marks = true;
break;
}
}
}
if (!hasAnyCat3Marks) {
return "📈 *CAT 3 MARKS REPORT*\n\n❌ CAT-3 marks are not updated yet.";
}
if (targetArray != null && targetArray.size() > 0) {
for (JsonNode subject : targetArray) {
String code = subject.has("code") ? subject.get("code").asText() : "";