Search in sources :

Example 1 with MsnDatacastMessage

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);
        }
    }
}
Also used : Email(net.sf.jml.Email) MsnSwitchboard(net.sf.jml.MsnSwitchboard) MsnDatacastMessage(net.sf.jml.message.MsnDatacastMessage)

Aggregations

Email (net.sf.jml.Email)1 MsnSwitchboard (net.sf.jml.MsnSwitchboard)1 MsnDatacastMessage (net.sf.jml.message.MsnDatacastMessage)1