add a function to get profile image of a contact

This commit is contained in:
B. Petersen
2018-10-30 11:21:55 +01:00
parent a2d6a00cd1
commit d8ccf5ed6d
2 changed files with 15 additions and 8 deletions
+6
View File
@@ -1181,6 +1181,12 @@ JNIEXPORT jstring Java_com_b44t_messenger_DcContact_getNameNAddr(JNIEnv *env, jo
}
JNIEXPORT jstring Java_com_b44t_messenger_DcContact_getProfileImage(JNIEnv *env, jobject obj)
{
return JSTRING_NEW("");
}
JNIEXPORT jboolean Java_com_b44t_messenger_DcContact_isBlocked(JNIEnv *env, jobject obj)
{
return (jboolean)(dc_contact_is_blocked(get_dc_contact(env, obj))!=0);
+9 -8
View File
@@ -59,14 +59,15 @@ public class DcContact {
return getAddr();
}
public native int getId ();
public native String getName ();
public native String getDisplayName();
public native String getFirstName ();
public native String getAddr ();
public native String getNameNAddr ();
public native boolean isBlocked ();
public native boolean isVerified ();
public native int getId ();
public native String getName ();
public native String getDisplayName ();
public native String getFirstName ();
public native String getAddr ();
public native String getNameNAddr ();
public native String getProfileImage();
public native boolean isBlocked ();
public native boolean isVerified ();
// working with raw c-data
private long contactCPtr; // CAVE: the name is referenced in the JNI