AdapterLib.MockOnOffSwitchDevice.CreateRemoteControllabilityInterface C# (CSharp) Method

CreateRemoteControllabilityInterface() private static method

private static CreateRemoteControllabilityInterface ( bool currentValue ) : AdapterInterface
currentValue bool
return AdapterInterface
        private static AdapterInterface CreateRemoteControllabilityInterface(bool currentValue)
        {
            var iface = new AdapterInterface("org.alljoyn.SmartSpaces.Operation.RemoteControllability");
            iface.Properties.Add(new AdapterAttribute("Version", (ushort)1) { COVBehavior = SignalBehavior.Never });
            iface.Properties[0].Annotations.Add("org.alljoyn.Bus.DocString.En", "The interface version");
            iface.Properties.Add(new AdapterAttribute("IsControllable", currentValue) { COVBehavior = SignalBehavior.Always });
            iface.Properties[1].Annotations.Add("org.alljoyn.Bus.DocString.En", "Status of remote controllability; true if remote controllability enabled.");
            return iface;
        }