minor refactor

This commit is contained in:
Ryan ZHAO 2021-03-17 16:09:01 +11:00
parent 26b60c0397
commit 80382cc454

View File

@ -12,11 +12,11 @@ import org.thoughtcrime.securesms.loki.utilities.*
class SessionJobDatabase(context: Context, helper: SQLCipherOpenHelper) : Database(context, helper) { class SessionJobDatabase(context: Context, helper: SQLCipherOpenHelper) : Database(context, helper) {
companion object { companion object {
private val sessionJobTable = "session_job_database" private const val sessionJobTable = "session_job_database"
val jobID = "job_id" const val jobID = "job_id"
val jobType = "job_type" const val jobType = "job_type"
val failureCount = "failure_count" const val failureCount = "failure_count"
val serializedData = "serialized_data" const val serializedData = "serialized_data"
@JvmStatic val createSessionJobTableCommand = "CREATE TABLE $sessionJobTable ($jobID INTEGER PRIMARY KEY, $jobType STRING, $failureCount INTEGER DEFAULT 0, $serializedData TEXT);" @JvmStatic val createSessionJobTableCommand = "CREATE TABLE $sessionJobTable ($jobID INTEGER PRIMARY KEY, $jobType STRING, $failureCount INTEGER DEFAULT 0, $serializedData TEXT);"
} }