HasSuggestions

interface HasSuggestions

Known direct subclasses
Structure

The top-level organizing construct for the Home.


Interface that provides automation suggestions.

Summary

Public functions

suspend Boolean

Clears the suggestion feedback for the given suggestionId.

suspend Boolean
dislikeSuggestion(suggestionId: String)

Dislikes the AutomationSuggestion with the given suggestionId.

suspend Boolean
likeSuggestion(suggestionId: String)

Likes the AutomationSuggestion with the given suggestionId.

suspend Set<AutomationSuggestion>

Returns all the AutomationSuggestion instances for the receiver.

suspend Set<AutomationSuggestion>
suggestions(sessionId: String, params: SuggestionParams)

Returns all the AutomationSuggestion instances for the receiver, caller can provide optional sessionId for MLP logging.

Public functions

clearSuggestionFeedback

suspend fun clearSuggestionFeedback(suggestionId: String): Boolean

Clears the suggestion feedback for the given suggestionId.

Returns
Boolean

true if the feedback is cleared, false otherwise.

dislikeSuggestion

suspend fun dislikeSuggestion(suggestionId: String): Boolean

Dislikes the AutomationSuggestion with the given suggestionId.

Returns
Boolean

true if the dislike is successful, false otherwise.

likeSuggestion

suspend fun likeSuggestion(suggestionId: String): Boolean

Likes the AutomationSuggestion with the given suggestionId.

Returns
Boolean

true if the like is successful, false otherwise.

suggestions

suspend fun suggestions(): Set<AutomationSuggestion>

Returns all the AutomationSuggestion instances for the receiver.

suggestions

suspend fun suggestions(
    sessionId: String = "",
    params: SuggestionParams = SuggestionParams()
): Set<AutomationSuggestion>

Returns all the AutomationSuggestion instances for the receiver, caller can provide optional sessionId for MLP logging.