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

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

Smarthome integration should expose DisconnectResponse #45

Open proppy opened 4 years ago

proppy commented 4 years ago

Currently it seems that smarthome integration always returns an empty response for DisconnectRequest.

https://github.com/actions-on-google/actions-on-google-java/blob/master/src/main/kotlin/com/google/actions/api/smarthome/SmartHomeApp.kt#L166

This could be problematic as developer might need to return an errorCode when the DisconnectRequest is failing.

Fleker commented 4 years ago

According to the documentation there is no errorCode field for a DisconnectResponse type.

proppy commented 4 years ago

Yes but https://developers.google.com/assistant/smarthome/develop/process-intents seems to indicate that most response could return errorCode

Fleker commented 4 years ago

This should be clarified more precisely. Even if the DisconnectResponse provided an error code, I don't believe the platform will interpret it. Regardless it seems like it'll disconnect the service.