forked from upstream-mirrors/quik
Display recent, starred, and contact groups in compose
This commit is contained in:
@@ -20,7 +20,8 @@ package com.moez.QKSMS.repository
|
||||
|
||||
import android.net.Uri
|
||||
import com.moez.QKSMS.model.Contact
|
||||
import io.reactivex.Flowable
|
||||
import com.moez.QKSMS.model.ContactGroup
|
||||
import io.reactivex.Observable
|
||||
import io.reactivex.Single
|
||||
import io.realm.RealmResults
|
||||
|
||||
@@ -30,6 +31,8 @@ interface ContactRepository {
|
||||
|
||||
fun getContacts(): RealmResults<Contact>
|
||||
|
||||
fun getUnmanagedContacts(): Flowable<List<Contact>>
|
||||
fun getUnmanagedContacts(starred: Boolean = false): Observable<List<Contact>>
|
||||
|
||||
fun getUnmanagedContactGroups(): Observable<List<ContactGroup>>
|
||||
|
||||
}
|
||||
@@ -21,6 +21,7 @@ package com.moez.QKSMS.repository
|
||||
import com.moez.QKSMS.model.Conversation
|
||||
import com.moez.QKSMS.model.Recipient
|
||||
import com.moez.QKSMS.model.SearchResult
|
||||
import io.reactivex.Observable
|
||||
import io.realm.RealmResults
|
||||
|
||||
interface ConversationRepository {
|
||||
@@ -51,6 +52,8 @@ interface ConversationRepository {
|
||||
*/
|
||||
fun getConversations(vararg threadIds: Long): RealmResults<Conversation>
|
||||
|
||||
fun getUnmanagedConversations(): Observable<List<Conversation>>
|
||||
|
||||
fun getRecipient(recipientId: Long): Recipient?
|
||||
|
||||
fun getThreadId(recipient: String): Long?
|
||||
|
||||
Reference in New Issue
Block a user