forked from upstream-mirrors/quik
#329 - Sync contact after adding
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package com.moez.QKSMS.listener
|
||||
|
||||
import io.reactivex.Single
|
||||
|
||||
interface ContactAddedListener {
|
||||
|
||||
fun listen(address: String): Single<*>
|
||||
|
||||
}
|
||||
@@ -37,4 +37,11 @@ interface SyncRepository {
|
||||
|
||||
fun syncContacts()
|
||||
|
||||
/**
|
||||
* Syncs a single contact to the Realm
|
||||
*
|
||||
* Return false if the contact couldn't be found
|
||||
*/
|
||||
fun syncContact(address: String): Boolean
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user