Ejemplo n.º 1
0
 public DeviceBasic()
 {
     RandomiseUdn(out gDeviceName);
     iDevice = new DvDeviceStandard(gDeviceName);
     iDevice.SetAttribute("Upnp.Domain", "openhome.org");
     iDevice.SetAttribute("Upnp.Type", "Test");
     iDevice.SetAttribute("Upnp.Version", "1");
     iDevice.SetAttribute("Upnp.FriendlyName", "ohNetTestDevice");
     iDevice.SetAttribute("Upnp.Manufacturer", "None");
     iDevice.SetAttribute("Upnp.ModelName", "ohNet test device");
     iTestBasic = new ProviderTestBasic(iDevice);
     iDevice.SetEnabled();
 }
Ejemplo n.º 2
0
 public DeviceLights(int aMode, string aConfigDir)
 {
     iConfigDir = aConfigDir;
     RandomiseUdn(out iDeviceName);
     iDevice = new Device.DvDeviceStandard(iDeviceName, this);
     iDevice.SetAttribute("Upnp.Domain", "openhome.org");
     iDevice.SetAttribute("Upnp.Type", "TestLights");
     iDevice.SetAttribute("Upnp.Version", "1");
     iDevice.SetAttribute("Upnp.FriendlyName", "ohNet Lights");
     iDevice.SetAttribute("Upnp.Manufacturer", "None");
     iDevice.SetAttribute("Upnp.ModelName", "ohNet Lights v1");
     iLights = new ProviderLights(iDevice, aMode);
     iDevice.SetEnabled();
 }
Ejemplo n.º 3
0
 public DeviceLights(int aMode, string aConfigDir)
 {
     iConfigDir = aConfigDir;
     RandomiseUdn(out iDeviceName);
     iDevice = new Device.DvDeviceStandard(iDeviceName, this);
     iDevice.SetAttribute("Upnp.Domain", "openhome.org");
     iDevice.SetAttribute("Upnp.Type", "TestLights");
     iDevice.SetAttribute("Upnp.Version", "1");
     iDevice.SetAttribute("Upnp.FriendlyName", "ohNet Lights");
     iDevice.SetAttribute("Upnp.Manufacturer", "None");
     iDevice.SetAttribute("Upnp.ModelName", "ohNet Lights v1");
     iLights = new ProviderLights(iDevice, aMode);
     iDevice.SetEnabled();
 }