Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
a3e275c1
Commit
a3e275c1
authored
Apr 11, 2013
by
Sylvain Berfini
Browse files
Added GetTime method to LinphoneChatMessage java impl
parent
043f9122
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
coreapi/linphonecore_jni.cc
coreapi/linphonecore_jni.cc
+6
-0
java/common/org/linphone/core/LinphoneChatMessage.java
java/common/org/linphone/core/LinphoneChatMessage.java
+6
-0
java/impl/org/linphone/core/LinphoneChatMessageImpl.java
java/impl/org/linphone/core/LinphoneChatMessageImpl.java
+5
-0
No files found.
coreapi/linphonecore_jni.cc
View file @
a3e275c1
...
@@ -1871,6 +1871,12 @@ extern "C" jlong Java_org_linphone_core_LinphoneChatMessageImpl_getPeerAddress(J
...
@@ -1871,6 +1871,12 @@ extern "C" jlong Java_org_linphone_core_LinphoneChatMessageImpl_getPeerAddress(J
return
(
jlong
)
linphone_chat_message_get_peer_address
((
LinphoneChatMessage
*
)
ptr
);
return
(
jlong
)
linphone_chat_message_get_peer_address
((
LinphoneChatMessage
*
)
ptr
);
}
}
extern
"C"
jlong
Java_org_linphone_core_LinphoneChatMessageImpl_getTime
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
ptr
)
{
return
(
jlong
)
linphone_chat_message_get_time
((
LinphoneChatMessage
*
)
ptr
);
}
extern
"C"
void
Java_org_linphone_core_LinphoneChatRoomImpl_sendMessage
(
JNIEnv
*
env
extern
"C"
void
Java_org_linphone_core_LinphoneChatRoomImpl_sendMessage
(
JNIEnv
*
env
,
jobject
thiz
,
jobject
thiz
,
jlong
ptr
,
jlong
ptr
...
...
java/common/org/linphone/core/LinphoneChatMessage.java
View file @
a3e275c1
...
@@ -106,4 +106,10 @@ public interface LinphoneChatMessage {
...
@@ -106,4 +106,10 @@ public interface LinphoneChatMessage {
* @return the value of the header, or null if not found.
* @return the value of the header, or null if not found.
*/
*/
String
getCustomHeader
(
String
name
);
String
getCustomHeader
(
String
name
);
/**
* Gets the time at which the message was sent
* @return the time in milliseconds
*/
long
getTime
();
}
}
java/impl/org/linphone/core/LinphoneChatMessageImpl.java
View file @
a3e275c1
...
@@ -8,6 +8,7 @@ public class LinphoneChatMessageImpl implements LinphoneChatMessage {
...
@@ -8,6 +8,7 @@ public class LinphoneChatMessageImpl implements LinphoneChatMessage {
private
native
String
getExternalBodyUrl
(
long
ptr
);
private
native
String
getExternalBodyUrl
(
long
ptr
);
private
native
void
setExternalBodyUrl
(
long
ptr
,
String
url
);
private
native
void
setExternalBodyUrl
(
long
ptr
,
String
url
);
private
native
long
getFrom
(
long
ptr
);
private
native
long
getFrom
(
long
ptr
);
private
native
long
getTime
(
long
ptr
);
protected
LinphoneChatMessageImpl
(
long
aNativePtr
)
{
protected
LinphoneChatMessageImpl
(
long
aNativePtr
)
{
nativePtr
=
aNativePtr
;
nativePtr
=
aNativePtr
;
...
@@ -64,4 +65,8 @@ public class LinphoneChatMessageImpl implements LinphoneChatMessage {
...
@@ -64,4 +65,8 @@ public class LinphoneChatMessageImpl implements LinphoneChatMessage {
public
String
getCustomHeader
(
String
name
)
{
public
String
getCustomHeader
(
String
name
)
{
return
getCustomHeader
(
nativePtr
,
name
);
return
getCustomHeader
(
nativePtr
,
name
);
}
}
public
long
getTime
()
{
return
getTime
(
nativePtr
);
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment