コード例 #1
0
 private static object CreateDeviceState()
 {
     var pluginId = Guid.NewGuid();
     var controls = new PluginControlEntryDictionary();
     var controlEntry = new ControlEntry(
         Guid.NewGuid(),
         new Control("1", "name1", new[] { "action1" }, new[] { "action2" }));
     controls[pluginId].Add(controlEntry);
     var devices = new DeviceEntryList
     {
         new DeviceEntry(Guid.NewGuid(), "device1", new[] {controlEntry})
     };
     return new DeviceStoreState(devices, controls);
 }
コード例 #2
0
 public DevicePluginControlDictionaryBuilder(DeviceEntryList devices, PluginControlEntryDictionary controls)
 {
     Devices = devices;
     Controls = controls;
 }