Signal-Android/sms-exporter/lib/src/main/java/org/signal/smsexporter/SmsExportProgress.kt

31 wiersze
572 B
Kotlin

package org.signal.smsexporter
/**
* Expresses the current progress of SMS exporting.
*/
sealed class SmsExportProgress {
/**
* Have not started yet.
*/
object Init : SmsExportProgress()
/**
* Starting up and about to start processing messages
*/
object Starting : SmsExportProgress()
/**
* Processing messages
*/
data class InProgress(
val progress: Int,
val errorCount: Int,
val total: Int
) : SmsExportProgress()
/**
* All done.
*/
data class Done(val errorCount: Int, val total: Int) : SmsExportProgress()
}