mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-25 17:12:38 +01:00
Remove persistence package for the moment
This commit is contained in:
parent
e7f9bf86c6
commit
0f4a62b7bf
@ -1,15 +0,0 @@
|
||||
package im.vector.matrix.android.api.persitence
|
||||
|
||||
import android.arch.paging.PagedList
|
||||
|
||||
interface Persister<DATA, KEY> {
|
||||
|
||||
fun put(data: DATA)
|
||||
|
||||
fun remove(data: DATA)
|
||||
|
||||
fun get(id: KEY): DATA?
|
||||
|
||||
fun getAll(): PagedList<DATA>
|
||||
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
package im.vector.matrix.android.api.persitence
|
||||
|
||||
import im.vector.matrix.android.api.util.Cancelable
|
||||
|
||||
interface Query<DATA> {
|
||||
|
||||
fun find(): DATA
|
||||
|
||||
fun subscribe(observer: QueryDataObserver<DATA>): Cancelable
|
||||
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
package im.vector.matrix.android.api.persitence
|
||||
|
||||
interface QueryBuilder<DATA, QUERY : Query<DATA>> {
|
||||
|
||||
fun build(): QUERY
|
||||
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
package im.vector.matrix.android.api.persitence;
|
||||
|
||||
public interface QueryDataObserver<DATA> {
|
||||
void onData(DATA data);
|
||||
}
|
Loading…
Reference in New Issue
Block a user