AdapterLib.MockOnOffSwitchDevice.CreateOnInterface C# (CSharp) Method

CreateOnInterface() private method

private CreateOnInterface ( bool currentValue ) : AdapterInterface
currentValue bool
return AdapterInterface
        private AdapterInterface CreateOnInterface(bool currentValue)
        {
            var iface = new AdapterInterface("org.alljoyn.SmartSpaces.Operation.OnControl");
            iface.Properties.Add(new AdapterAttribute("Version", (ushort)1) { COVBehavior = SignalBehavior.Never });
            iface.Properties[0].Annotations.Add("org.alljoyn.Bus.DocString.En", "The interface version");
            var m = new AdapterMethod("SwitchOn", "Switch on the device.", (sender, input, output) =>
            {
                OnOff = true;
            });
            iface.Methods.Add(m);
            return iface;
        }
        /*