feat(android): add voice protocol models and overlay mode enum

This commit is contained in:
Sanju Sivalingam
2026-02-20 02:05:06 +05:30
parent 3522b66b02
commit 2986766d41
2 changed files with 23 additions and 0 deletions

View File

@@ -28,3 +28,9 @@ data class GoalSession(
val status: GoalStatus,
val timestamp: Long = System.currentTimeMillis()
)
enum class OverlayMode {
Idle,
Listening,
Executing
}

View File

@@ -76,6 +76,23 @@ data class StopGoalMessage(
val type: String = "stop_goal"
)
@Serializable
data class VoiceStartMessage(
val type: String = "voice_start"
)
@Serializable
data class VoiceChunkMessage(
val type: String = "voice_chunk",
val data: String
)
@Serializable
data class VoiceStopMessage(
val type: String = "voice_stop",
val action: String
)
@Serializable
data class ServerMessage(
val type: String,