mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-06 11:59:58 +02:00
add DcContext.sendMsg() and related functions to bindings
This commit is contained in:
parent
d895d19418
commit
3870d8c674
3 changed files with 72 additions and 0 deletions
|
@ -134,6 +134,7 @@ public class DcContext {
|
|||
public native int getFreshMsgCount(int chat_id);
|
||||
public native void deleteMsgs(int msg_ids[]);
|
||||
public native void forwardMsgs(int msg_ids[], int chat_ids);
|
||||
public native int sendMsg(int chat_id, DcMsg msg);
|
||||
public native int sendTextMsg(int chat_id, String text);
|
||||
public native int sendVcardMsg(int chat_id, int contact_id);
|
||||
public native int sendMediaMsg(int chat_id, int type, String file, String mime, int w, int h, int time_ms, String author, String trackname);
|
||||
|
@ -156,6 +157,7 @@ public class DcContext {
|
|||
// working with raw c-data
|
||||
private long m_hContext = 0; // must not be renamed as referenced by JNI
|
||||
private native long DcContextNew(String osName);
|
||||
public native long createMsgCPtr();
|
||||
private native static long DcContextGetChatlist(long hContext, int listflags, String query, int queryId);
|
||||
private native static long DcContextGetChat(long hContext, int chat_id);
|
||||
private native static long DcContextGetMsg(long hMailbox, int id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue