Skip to content

Instantly share code, notes, and snippets.

@thesmith
Created July 25, 2010 18:49
Show Gist options
  • Save thesmith/489780 to your computer and use it in GitHub Desktop.
Save thesmith/489780 to your computer and use it in GitHub Desktop.
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