Import SMS
This commit is contained in:
parent
7f32115afe
commit
9656207135
14 changed files with 310 additions and 28 deletions
|
|
@ -0,0 +1,12 @@
|
|||
package com.simplemobiletools.smsmessenger.models
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
||||
data class ExportedMessage(
|
||||
@SerializedName("threadId")
|
||||
val threadId: Long,
|
||||
@SerializedName("sms")
|
||||
val sms: List<Map<String, String>>,
|
||||
@SerializedName("mms")
|
||||
val mms: List<Map<String, Any>>,
|
||||
)
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
package com.simplemobiletools.smsmessenger.models
|
||||
|
||||
|
||||
import android.provider.Telephony
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
||||
data class SmsBackup(
|
||||
@SerializedName(Telephony.Sms._ID)
|
||||
val id: Long,
|
||||
@SerializedName(Telephony.Sms.ADDRESS)
|
||||
val address: String,
|
||||
@SerializedName(Telephony.Sms.BODY)
|
||||
val body: String,
|
||||
@SerializedName(Telephony.Sms.CREATOR)
|
||||
val creator: String,
|
||||
@SerializedName(Telephony.Sms.DATE)
|
||||
val date: Long,
|
||||
@SerializedName(Telephony.Sms.DATE_SENT)
|
||||
val dateSent: Int,
|
||||
@SerializedName(Telephony.Sms.ERROR_CODE)
|
||||
val errorCode: Int,
|
||||
@SerializedName(Telephony.Sms.LOCKED)
|
||||
val locked: Int,
|
||||
@SerializedName(Telephony.Sms.PERSON)
|
||||
val person: String,
|
||||
@SerializedName(Telephony.Sms.PROTOCOL)
|
||||
val protocol: String,
|
||||
@SerializedName("read")
|
||||
val read: Int,
|
||||
@SerializedName("reply_path_present")
|
||||
val replyPathPresent: Any,
|
||||
@SerializedName("seen")
|
||||
val seen: Int,
|
||||
@SerializedName("service_center")
|
||||
val serviceCenter: Any,
|
||||
@SerializedName("status")
|
||||
val status: Int,
|
||||
@SerializedName("sub_id")
|
||||
val subId: Int,
|
||||
@SerializedName("subject")
|
||||
val subject: Any,
|
||||
@SerializedName("thread_id")
|
||||
val threadId: Long,
|
||||
@SerializedName("type")
|
||||
val type: Int
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue