Display recent, starred, and contact groups in compose

This commit is contained in:
moezbhatti
2019-10-27 22:04:43 -04:00
committed by Moez Bhatti
parent 8f67de736a
commit a91643e882
14 changed files with 411 additions and 164 deletions
@@ -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?