jstring jvalue =env->NewStringUTF(((LinphoneCallLog*)ptr)->start_date);
return jvalue;
}
+extern "C" jlong Java_org_linphone_core_LinphoneCallLogImpl_getTimestamp(JNIEnv* env
+ ,jobject thiz
+ ,jlong ptr) {
+ return static_cast<long> (((LinphoneCallLog*)ptr)->start_date_time);
+}
extern "C" jint Java_org_linphone_core_LinphoneCallLogImpl_getCallDuration(JNIEnv* env
,jobject thiz
,jlong ptr) {
*/
public String getStartDate();
+ /**
+ * @return a timestamp of the start date/time of the call in milliseconds since January 1st 1970
+ */
+ public long getTimestamp();
+
/**
* @return the call duration, in seconds
*/
private native String getStartDate(long nativePtr);
private native int getCallDuration(long nativePtr);
private native int getCallId(long nativePtr);
+ private native long getTimestamp(long nativePtr);
LinphoneCallLogImpl(long aNativePtr) {
nativePtr = aNativePtr;
public int getCallId() {
return getCallId(nativePtr);
}
+
+ public long getTimestamp() {
+ return getTimestamp(nativePtr);
+ }
}