Exemple #1
0
 public void Notify(Alert alert)
 {
     foreach (BaseMessageSystem o in m_observers)
     {
         o.sendMessage(alert);
     }
 }
Exemple #2
0
 public override void SendAlert(String alertMess, Alert.LEVEL level)
 {
     if (null != m_ns)
     {
         Alert alert = new Alert("From Bed Unit " + m_bedID + "\n" + alertMess, level);
         m_ns.Notify(alert);
     }
     m_alarm = true;
 }
Exemple #3
0
 public override void SendAlert(String alertMess, Alert.LEVEL level)
 {
     if (null != m_comp)
     {
         m_comp.SendAlert(alertMess, level);
     }
 }
Exemple #4
0
 public void alert(Alert alert)
 {
     Notify(alert);
 }
Exemple #5
0
 public override void sendMessage(Alert alert)
 {
     String message = "ALERT RECIEVED:" + "\n" + alert.message + "\n LEVEL : " + alert.level;
     if (null != m_ui)
         m_ui.addMessage(message);
 }
Exemple #6
0
 public override void sendMessage(Alert alert)
 {
     String message = "MAIL TO:" + m_emailAdd + "\n" + alert.message + "\n LEVEL : " + alert.level;
     if (null != m_ui)
         m_ui.addMessage(message);
 }
Exemple #7
0
 public abstract void sendMessage(Alert alert);
Exemple #8
0
 public override void sendMessage(Alert alert)
 {
     String message = "PAGEING " + m_pagerNum + "\n" + alert.message + "\n LEVEL : " + alert.level;
     if (null != m_ui)
         m_ui.addMessage(message);
 }
Exemple #9
0
 public override void sendMessage(Alert alert)
 {
     String message = "SMS TO:" + m_phoneNum + "\n" + alert.message + "\n LEVEL : " + alert.level;
     if (null != m_ui)
         m_ui.addMessage(message);
 }
Exemple #10
0
 public abstract void SendAlert(String alertMess, Alert.LEVEL level);