AdapterLib.MockOnOffSwitchDevice.MockOnOffSwitchDevice C# (CSharp) Method

MockOnOffSwitchDevice() public method

public MockOnOffSwitchDevice ( string name, string id, bool isOn, Windows dispatcher ) : System
name string
id string
isOn bool
dispatcher Windows
return System
        public MockOnOffSwitchDevice(string name, string id, bool isOn, Windows.UI.Core.CoreDispatcher dispatcher) :
            base(name, "MockDevices Inc", "Mock Switch", "1", id, "")
        {
            this.dispatcher = dispatcher;
            Icon = new AdapterIcon(new System.Uri("ms-appx:///Icons/Switch.png"));
            _interfaceOnOff = CreateOnOffInterface(isOn);
            _interfaceOn = CreateOnInterface(isOn);
            _interfaceOff = CreateOffInterface(!isOn);
            _interfaceRemoteControl = CreateRemoteControllabilityInterface(true);
            AdapterBusObject abo = new AdapterBusObject("org/alljoyn/SmartSpaces/Operation/Switch");
            abo.Interfaces.Add(_interfaceOnOff);
            abo.Interfaces.Add(_interfaceOn);
            abo.Interfaces.Add(_interfaceOff);
            abo.Interfaces.Add(_interfaceRemoteControl);
            this.BusObjects.Add(abo);
            CreateEmitSignalChangedSignal();
            _onOff = isOn;
        }