Class DictionaryInputMapping
A JSON deseriazable input mapping backed by a simple dictionary lookup. todo: make this free from newtonsoft.json
Inheritance
System.Object
DictionaryInputMapping
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Snowflake.Configuration.Input
Assembly: Snowflake.Framework.dll
Syntax
[JsonConverter(typeof(InputMappingConverter))]
public class DictionaryInputMapping : IDeviceInputMapping
Constructors
DictionaryInputMapping(IDictionary<DeviceCapability, String>)
Instantiate an input mapping with the given dictionary of mappings.
Declaration
public DictionaryInputMapping(IDictionary<DeviceCapability, string> elementMappings)
Parameters
Type | Name | Description |
---|---|---|
System. |
elementMappings | The dictionary of mappings from Device |
Properties
Item[DeviceCapability]
Declaration
public string this[DeviceCapability element] { get; }
Parameters
Type | Name | Description |
---|---|---|
Device |
element |
Property Value
Type | Description |
---|---|
System. |