fix(android): retain action layer and idle rotation across turns
This commit is contained in:
@@ -24,6 +24,8 @@ object DialogueProtocol {
|
||||
fun parseEvent(text: String) = when (text) {
|
||||
"auth" -> ServerEvent("auth", EventKind.AUTH, Payload())
|
||||
"auth failed" -> ServerEvent("auth", EventKind.AUTH, Payload(false))
|
||||
"hello available" -> ServerEvent("hello", EventKind.HELLO, Payload(fields=mapOf("action_available" to true)))
|
||||
"hello unavailable" -> ServerEvent("hello", EventKind.HELLO, Payload(fields=mapOf("action_available" to false)))
|
||||
"hello" -> ServerEvent("hello", EventKind.HELLO, Payload())
|
||||
"error" -> ServerEvent("error", EventKind.ERROR, Payload())
|
||||
"unknown" -> ServerEvent("auth_ready", EventKind.UNKNOWN, Payload())
|
||||
|
||||
Reference in New Issue
Block a user