feat: use models during export, try to update conversation date during import

This commit is contained in:
darthpaul 2021-09-18 21:05:06 +01:00
parent e10a410788
commit d78776e288
11 changed files with 216 additions and 149 deletions

View file

@ -18,8 +18,6 @@ data class MmsBackup(
val dateSent: Long,
@SerializedName("locked")
val locked: Int,
@SerializedName("m_id")
val messageId: String?,
@SerializedName("m_type")
val messageType: Int,
@SerializedName("msg_box")
@ -40,14 +38,12 @@ data class MmsBackup(
val subjectCharSet: String?,
@SerializedName("sub_id")
val subscriptionId: Long,
@SerializedName("thread_id")
val threadId: Long,
@SerializedName("tr_id")
val transactionId: String?,
@SerializedName("addresses")
val addresses: List<MmsAddress>,
@SerializedName("parts")
val mmsParts: List<MmsPart>,
val parts: List<MmsPart>,
) {
fun toContentValues(): ContentValues {