public void Notify(Alert alert) { foreach (BaseMessageSystem o in m_observers) { o.sendMessage(alert); } }
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; }
public override void SendAlert(String alertMess, Alert.LEVEL level) { if (null != m_comp) { m_comp.SendAlert(alertMess, level); } }
public void alert(Alert alert) { Notify(alert); }
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); }
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); }
public abstract void sendMessage(Alert alert);
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); }
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); }
public abstract void SendAlert(String alertMess, Alert.LEVEL level);