/// <summary> /// Invoked when a message stanza has been received. /// </summary> /// <param name="stanza">The stanza which has been received.</param> /// <returns>true to intercept the stanza or false to pass the stanza /// on to the next handler.</returns> public bool Input(Sharp.Xmpp.Im.Message message) { if (message.Type == MessageType.Headline) { if (message.Data["alert", "http://www.incident.com/cap/1.0"] != null) { //TO DO log.LogDebug("[Input] Alert message received"); AlertMessage.Raise(this, new Sharp.Xmpp.Im.MessageEventArgs(message.From, message)); return(true); } } return(false); }