@Override public void sendMessage(final byte[] jpegData) { IConversation current = getCurrentConversation(); if (current != null) { current.sendMessage(new MessageContent.Image(ImageAssetFactory.getImageAsset(jpegData))); } }
@Override public void sendMessage( IConversation conversation, AudioAssetForUpload audioAssetForUpload, MessageContent.Asset.ErrorHandler errorHandler) { if (conversation != null) { Timber.i("Send audio file to %s", conversation.getName()); conversation.sendMessage(new MessageContent.Asset(audioAssetForUpload, errorHandler)); } }
@Override public void sendMessage(IConversation conversation, ImageAsset imageAsset) { if (conversation != null) { conversation.sendMessage(new MessageContent.Image(imageAsset)); } }
@Override public void sendMessage(IConversation conversation, String message) { if (conversation != null) { conversation.sendMessage(new MessageContent.Text(message)); } }