allow null when getting summary

This commit is contained in:
B. Petersen
2018-08-20 00:42:01 +02:00
parent 4b410c8753
commit f4945ae267
+3 -12
View File
@@ -36,18 +36,9 @@ public class DcChatlist {
}
public native int getCnt();
public DcChat getChatByIndex(int index) {
return new DcChat(DcChatlistGetChatByIndex(m_hChatlist, index));
}
public DcMsg getMsgByIndex(int index) {
return new DcMsg(DcChatlistGetMsgByIndex(m_hChatlist, index));
}
public DcLot getSummaryByIndex(int index, DcChat chat) {
return new DcLot(DcChatlistGetSummaryByIndex(m_hChatlist, index, chat.getCPtr()));
}
public DcChat getChatByIndex(int index) { return new DcChat(DcChatlistGetChatByIndex(m_hChatlist, index)); }
public DcMsg getMsgByIndex(int index) { return new DcMsg(DcChatlistGetMsgByIndex(m_hChatlist, index)); }
public DcLot getSummaryByIndex(int index, DcChat chat) { return new DcLot(DcChatlistGetSummaryByIndex(m_hChatlist, index, chat==null? null : chat.getCPtr())); }
// working with raw c-data
private long m_hChatlist; // must not be renamed as referenced by JNI