Created
July 25, 2010 18:49
-
-
Save thesmith/489780 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Message msg = new MessageBuilder() | |
.withRecipientJids(jid) | |
.withBody(video.toString()) | |
.withMessageType(MessageType.CHAT).build(); | |
boolean messageSent = false; | |
if (xmpp.getPresence(jid).isAvailable()) { | |
SendResponse status = xmpp.sendMessage(msg); | |
messageSent = (status.getStatusMap().get(jid) == SendResponse.Status.SUCCESS); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment