public static AdapterInterface CreateOnControl(Action switchOnAction)
{
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) =>
{
switchOnAction();
});
iface.Methods.Add(m);
return iface;
}
/*