mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
allow null when getting summary
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user