use of net.sf.jml.message.MsnDatacastMessage in project Openfire by igniterealtime.
the class MSNSession method sendBuzzNotification.
/**
* @see net.sf.kraken.session.TransportSession#sendBuzzNotification(org.xmpp.packet.JID, String)
*/
@Override
public void sendBuzzNotification(JID jid, String message) {
final MsnDatacastMessage nudge = new MsnDatacastMessage();
// 1=nudge, 2=wink
nudge.setId(1);
final Email jidEmail = Email.parseStr(getTransport().convertJIDToID(jid));
for (MsnSwitchboard sb : msnMessenger.getActiveSwitchboards()) {
if (sb.containContact(jidEmail)) {
sb.sendMessage(nudge, false);
}
}
}
Aggregations