use of net.sf.jml.MsnSwitchboard 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);
}
}
}
use of net.sf.jml.MsnSwitchboard in project Openfire by igniterealtime.
the class MSNSession method sendChatState.
/**
* @see net.sf.kraken.session.TransportSession#sendChatState(org.xmpp.packet.JID,net.sf.kraken.type.ChatStateType)
*/
@Override
public void sendChatState(JID jid, ChatStateType chatState) {
if (chatState.equals(ChatStateType.composing)) {
Email jidEmail = Email.parseStr(getTransport().convertJIDToID(jid));
MsnControlMessage mcm = new MsnControlMessage();
mcm.setTypingUser(msnMessenger.getOwner().getEmail().getEmailAddress());
for (MsnSwitchboard sb : msnMessenger.getActiveSwitchboards()) {
if (sb.containContact(jidEmail)) {
sb.sendMessage(mcm, true);
}
}
}
}
Aggregations