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 sourceId.

suspend Boolean

Dislikes the AutomationSuggestion with the given sourceId.

suspend Boolean

Likes the AutomationSuggestion with the given sourceId.

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(sourceId: String): Boolean

Clears the suggestion feedback for the given sourceId.

Returns
Boolean

true if the feedback is cleared, false otherwise.

dislikeSuggestion

suspend fun dislikeSuggestion(sourceId: String): Boolean

Dislikes the AutomationSuggestion with the given sourceId.

Returns
Boolean

true if the dislike is successful, false otherwise.

likeSuggestion

suspend fun likeSuggestion(sourceId: String): Boolean

Likes the AutomationSuggestion with the given sourceId.

Returns
Boolean

true if the like is successful, false otherwise.

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.