C# Класс BackgroundTasks.LightControllerVoiceCommandService

Handler for background Cortana interactions with Hue.
Наследование: IBackgroundTask
Показать файл Открыть проект

Открытые методы

Метод Описание
Run ( IBackgroundTaskInstance taskInstance ) : void

Entry point for the background task.

Приватные методы

Метод Описание
ChangeLightStateAsync ( ) : System.Threading.Tasks.Task

Handles the command to change the state of all the lights.

ChangeSpecificLightStateAsync ( ) : System.Threading.Tasks.Task

Handles the command to change the state of a specific light.

CreateCortanaResponse ( string message ) : VoiceCommandResponse

Helper method for creating a message for Cortana to speak and write to the user.

ExecutePhrase ( Light light, string phrase ) : System.Threading.Tasks.Task

Converts a phrase to a light command and executes it.

InitializeAsync ( AppServiceTriggerDetails triggerDetails ) : Task

Helper method for initalizing the voice service, bridge, and lights. Returns if successful.

SelectColorAsync ( ) : System.Threading.Tasks.Task

Handles an interaction with Cortana where the user selects from randomly chosen colors to change the lights to.

Описание методов

Run() публичный Метод

Entry point for the background task.
public Run ( IBackgroundTaskInstance taskInstance ) : void
taskInstance IBackgroundTaskInstance
Результат void