return msg->message;
}
+const LinphoneAddress* linphone_chat_message_get_peer_address(LinphoneChatMessage *msg) {
+ return linphone_chat_room_get_peer_address(msg->chat_room);
+}
+
/**
* user pointer set function
*/
LinphoneCore* linphone_chat_room_get_lc(LinphoneChatRoom *cr);
LinphoneChatRoom* linphone_chat_message_get_chat_room(LinphoneChatMessage *msg);
char* linphone_chat_message_get_message(LinphoneChatMessage *msg);
+const LinphoneAddress* linphone_chat_message_get_peer_address(LinphoneChatMessage *msg);
void linphone_chat_room_set_user_data(LinphoneChatRoom *cr, void * ud);
void * linphone_chat_room_get_user_data(LinphoneChatRoom *cr);
jstring jvalue =env->NewStringUTF(linphone_chat_message_get_message((LinphoneChatMessage*)ptr));
return jvalue;
}
+extern "C" long Java_org_linphone_core_LinphoneChatMessageImpl_getPeerAddress(JNIEnv* env
+ ,jobject thiz
+ ,jlong ptr) {
+ return (long) linphone_chat_message_get_peer_address((LinphoneChatMessage*)ptr);
+}
extern "C" void Java_org_linphone_core_LinphoneChatRoomImpl_sendMessage(JNIEnv* env
,jobject thiz
,jlong ptr
void setUserData();
+ /**
+ * get text associated to this LinphoneChatMessage
+ *
+ * @return text sent along with the message
+ */
String getMessage();
+
+ /**
+ * get peer address associated to this LinphoneChatMessage
+ *
+ * @return LinphoneAddress peer address
+ */
+ LinphoneAddress getPeerAddress();
}