From 47bbe4936cde1675ea49ce1184bd373982e5f504 Mon Sep 17 00:00:00 2001 From: "sangho.lee" Date: Tue, 9 Jan 2024 12:01:35 +0900 Subject: [PATCH] Apply service payload at Text.TextRedirect #2449 --- .../src/main/java/com/skt/nugu/sdk/agent/text/TextAgent.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nugu-agent/src/main/java/com/skt/nugu/sdk/agent/text/TextAgent.kt b/nugu-agent/src/main/java/com/skt/nugu/sdk/agent/text/TextAgent.kt index ad312e6b0..9fdd0bff1 100644 --- a/nugu-agent/src/main/java/com/skt/nugu/sdk/agent/text/TextAgent.kt +++ b/nugu-agent/src/main/java/com/skt/nugu/sdk/agent/text/TextAgent.kt @@ -74,6 +74,8 @@ class TextAgent( val token: String, @SerializedName("targetPlayServiceId") val targetPlayServiceId: String?, + @SerializedName("service") + val service: JsonObject?, @SerializedName("interactionControl") val interactionControl: InteractionControl? ) @@ -320,6 +322,7 @@ class TextAgent( TextInputRequester.Request.Builder(payload.text) .includeDialogAttribute(targetPlayServiceId == null) .playServiceId(targetPlayServiceId).token(payload.token) + .service(payload.service?.toString()) .interactionControl(payload.interactionControl) .referrerDialogRequestId(info.directive.header.dialogRequestId).build(), object : TextAgentInterface.RequestListener {