mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-16 02:58:52 +01:00
Return nullable cursors when mapping from native contentprovider
This commit is contained in:
@@ -23,6 +23,6 @@ import model.Contact
|
||||
|
||||
interface CursorToContact : Mapper<Cursor, Contact> {
|
||||
|
||||
fun getContactsCursor(): Cursor
|
||||
fun getContactsCursor(): Cursor?
|
||||
|
||||
}
|
||||
@@ -23,8 +23,8 @@ import model.Conversation
|
||||
|
||||
interface CursorToConversation : Mapper<Cursor, Conversation> {
|
||||
|
||||
fun getConversationsCursor(lastSync: Long = 0): Cursor
|
||||
fun getConversationsCursor(lastSync: Long = 0): Cursor?
|
||||
|
||||
fun getConversationCursor(threadId: Long): Cursor
|
||||
fun getConversationCursor(threadId: Long): Cursor?
|
||||
|
||||
}
|
||||
@@ -26,9 +26,9 @@ import java.util.*
|
||||
|
||||
interface CursorToMessage : Mapper<Pair<Cursor, CursorToMessage.MessageColumns>, Message> {
|
||||
|
||||
fun getMessagesCursor(): Cursor
|
||||
fun getMessagesCursor(): Cursor?
|
||||
|
||||
fun getMessageCursor(id: Long): Cursor
|
||||
fun getMessageCursor(id: Long): Cursor?
|
||||
|
||||
class MessageColumns(private val cursor: Cursor) {
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@ import model.Recipient
|
||||
|
||||
interface CursorToRecipient : Mapper<Cursor, Recipient> {
|
||||
|
||||
fun getRecipientCursor(): Cursor
|
||||
fun getRecipientCursor(): Cursor?
|
||||
|
||||
fun getRecipientCursor(id: Long): Cursor
|
||||
fun getRecipientCursor(id: Long): Cursor?
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user