// TODO consider making these actions configurable. public LightActionSpec() { var semanticValueToActionMap = new Dictionary <string, IVoiceAction>(); semanticValueToActionMap.Add(TurnOffVoiceAction.TurnOffLightsSemanticValue, new TurnOffVoiceAction()); semanticValueToActionMap.Add(TurnOnVoiceAction.TurnOnLightsSemanticValue, new TurnOnVoiceAction()); SemanticValueToActionMap = semanticValueToActionMap; var lightIdentifiers = new List <LightVoiceIdentifier>(); lightIdentifiers.Add(new LightVoiceIdentifier("MASTER_BEDROOM", new List <string> { "master bedroom", "big bedroom", "suite" })); lightIdentifiers.Add(new LightVoiceIdentifier("SMALL_BATHROOM", new List <string> { "half bath" })); lightIdentifiers.Add(new LightVoiceIdentifier("BIG_BATHROOM", new List <string> { "big bathroom", "main bathroom" })); lightIdentifiers.Add(new LightVoiceIdentifier("KITCHEN", new List <string> { "kitchen", "dining room" })); lightIdentifiers.Add(new LightVoiceIdentifier("LIVING_ROOM", new List <string> { "living room", "tv room", "entrance" })); lightIdentifiers.Add(new LightVoiceIdentifier("GARAGE", new List <string> { "garage", "car port" })); lightIdentifiers.Add(new LightVoiceIdentifier("OFFICE", new List <string> { "office", "computer room" })); lightIdentifiers.Add(new LightVoiceIdentifier("HALLWAY", new List <string> { "hallway" })); lightIdentifiers.Add(new LightVoiceIdentifier("GUEST_BEDROOM", new List <string> { "guest bedroom" })); lightIdentifiers.Add(new LightVoiceIdentifier("HEDGEHOG_ROOM", new List <string> { "hedgehog room" })); lightIdentifiers.Add(LightVoiceIdentifier.GetAllLightsIdentifier()); LightIdentifiers = lightIdentifiers; }
public void ExecuteAction(LightVoiceIdentifier lightIdentifier) { Console.WriteLine("EXECUTING THE TURN OFF ACTION ON LIGHT ID {0}", lightIdentifier.LightLabelSemanticValue); }
public void ExecuteAction(LightVoiceIdentifier lightIdentifier) { Console.WriteLine("EXECUTING THE TURN OFF ACTION ON LIGHT ID {0}", lightIdentifier.LightLabelSemanticValue); }