mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-06 03:49:58 +02:00
add getStatus() api
This commit is contained in:
parent
0390d845e5
commit
4901d7c68f
2 changed files with 10 additions and 0 deletions
|
@ -1547,6 +1547,15 @@ JNIEXPORT jint Java_com_b44t_messenger_DcContact_getColor(JNIEnv *env, jobject o
|
|||
}
|
||||
|
||||
|
||||
JNIEXPORT jstring Java_com_b44t_messenger_DcContact_getStatus(JNIEnv *env, jobject obj)
|
||||
{
|
||||
char* temp = dc_contact_get_status(get_dc_contact(env, obj));
|
||||
jstring ret = JSTRING_NEW(temp);
|
||||
dc_str_unref(temp);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
JNIEXPORT jboolean Java_com_b44t_messenger_DcContact_isBlocked(JNIEnv *env, jobject obj)
|
||||
{
|
||||
return (jboolean)(dc_contact_is_blocked(get_dc_contact(env, obj))!=0);
|
||||
|
|
|
@ -51,6 +51,7 @@ public class DcContact {
|
|||
public native String getNameNAddr ();
|
||||
public native String getProfileImage();
|
||||
public native int getColor ();
|
||||
public native String getStatus ();
|
||||
public native boolean isBlocked ();
|
||||
public native boolean isVerified ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue