if (cio.getNotifyConfig() == 2
&& cio.getPhoneNumber() != null
&& cio.getPhoneNumber() != ""
&& cio.getCarrier() != CARRIER.NULL) {
// sms notify
SMSNotifier smsn = new SMSNotifier();
String msg = prepareMessage(SMS_NOTIFICATION,
uco.getDepartmentName(), uco.getCourseNumber(),
uco.getSectionNumber(), gSeats, "general");
SMSNotifier.sendMessage(cio.getPhoneNumber(),
cio.getCarrier(), msg);
destroyContactEntry(ce.getKey());
}
}
if (cio.getSeatConfig() == 2 && rSeats > 0) {
// notify res seats avail
if (cio.getNotifyConfig() == 1
&& cio.getEmailAddress() != null
&& cio.getEmailAddress() != "") {
// email notify
EmailNotifier en = new EmailNotifier();
String msg = prepareMessage(EMAIL_NOTIFICATION,
uco.getDepartmentName(), uco.getCourseNumber(),
uco.getSectionNumber(), rSeats, "restricted");
EmailNotifier.sendMessage(cio.getEmailAddress(), msg);
destroyContactEntry(ce.getKey());
}
if (cio.getNotifyConfig() == 2
&& cio.getPhoneNumber() != null
&& cio.getPhoneNumber() != ""
&& cio.getCarrier() != CARRIER.NULL) {
// sms notify
SMSNotifier smsn = new SMSNotifier();
String msg = prepareMessage(SMS_NOTIFICATION,
uco.getDepartmentName(), uco.getCourseNumber(),
uco.getSectionNumber(), rSeats, "restricted");
SMSNotifier.sendMessage(cio.getPhoneNumber(),
cio.getCarrier(), msg);