package com.dronex.rec.recording

enum class RecordingState {
    IDLE,
    PREVIEWING,
    RECORDING,
    STOPPING,
    ERROR,
}

data class RecordingStatus(
        val state: RecordingState,
        val outputPath: String? = null,
        val elapsedMillis: Long = 0L,
        val message: String? = null,
) {
    fun toMap(): Map<String, Any?> =
            mapOf(
                    "state" to state.name.lowercase(),
                    "outputPath" to outputPath,
                    "elapsedMillis" to elapsedMillis,
                    "message" to message,
            )
}
