Exemplo n.º 1
0
        protected override void Execute_HomeAutomationNetworkDefinition(HomeAutomationCommandContext context)
        {
            var interpreter = context.Interpreter;
            var network = context.Network;

            interpreter.WriteEvent("Waiting for device.  Press its button to remove it from its network.");

            var device = network.RemoveDevice();

            interpreter.WriteEvent("Device removed: " + device);

            if (WebHookConnector.WebHookPresent(context))
            {
                context.AddSyncWithCloud();
            }
        }
Exemplo n.º 2
0
        protected override void Execute_HomeAutomationNetworkDefinition(HomeAutomationCommandContext context)
        {
            var interpreter = context.Interpreter;
            var network     = context.Network;

            interpreter.WriteEvent("Waiting for device.  Press its button to remove it from its network.");

            var device = network.RemoveDevice();

            interpreter.WriteEvent("Device removed: " + device);

            if (WebHookConnector.WebHookPresent(context))
            {
                context.AddSyncWithCloud();
            }
        }
Exemplo n.º 3
0
 protected override void Execute_HomeAutomationNetworkDefinition(HomeAutomationCommandContext context)
 {
     context.AddSyncWithCloud();
 }
Exemplo n.º 4
0
 protected override void Execute_HomeAutomationNetworkDefinition(HomeAutomationCommandContext context)
 {
     context.AddSyncWithCloud();
 }