actions-on-google / actions-on-google-java

Java/Kotlin library for Actions on Google
Apache License 2.0
286 stars 39 forks source link

roomHint is not contained in response #35

Closed RayBa82 closed 5 years ago

RayBa82 commented 5 years ago

kotlin application, actions-on-google version 1.7.0

roomHint is set with devicebuilder val deviceBuilder = SyncResponse.Payload.Device.Builder() .setId(it.name) .setOtherDeviceIds(Collections.singletonList(otherDeviceIds)) .setName(name) .setType(type) .setDeviceInfo(info) .setRoomHint(roomHint) .setTraits(traits) .setAttributes(attributes) .setCustomData(customData) .setWillReportState(true)

json string is received with val result = assistantApp.handleRequest(body, headerMap).get()

the roomHint is missing in the json string

RayBa82 commented 5 years ago

Oh my mistake, this is not true, it is working as desired