Implement logic to export messages to json

This commit is contained in:
Moez Bhatti
2018-08-23 17:47:17 -04:00
parent adb6d50cad
commit cb3b1e47a1
13 changed files with 106 additions and 36 deletions
@@ -18,8 +18,8 @@
*/
package com.moez.QKSMS.model
data class Backup(
data class BackupFile(
val date: Long,
val messages: List<Long>,
val messages: Int,
val size: Long
)
@@ -18,7 +18,7 @@
*/
package com.moez.QKSMS.repository
import com.moez.QKSMS.model.Backup
import com.moez.QKSMS.model.BackupFile
import io.reactivex.Observable
interface BackupRepository {
@@ -35,7 +35,7 @@ interface BackupRepository {
/**
* Returns a list of all local backups
*/
fun getBackups(): Observable<List<Backup>>
fun getBackups(): Observable<List<BackupFile>>
fun performRestore()