mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +03:00
Remove persistence package for the moment
This commit is contained in:
parent
e7f9bf86c6
commit
0f4a62b7bf
4 changed files with 0 additions and 38 deletions
|
@ -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 a new issue