• Home
  • Blog
  • Docs
  • GitHub
Show / Hide Table of Contents

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
IDeviceInputMapping
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.Collections.Generic.IDictionary<DeviceCapability, System.String> elementMappings

The dictionary of mappings from DeviceCapability to input configuration string.

Properties

Item[DeviceCapability]

Declaration
public string this[DeviceCapability element] { get; }
Parameters
Type Name Description
DeviceCapability element
Property Value
Type Description
System.String

Implements

IDeviceInputMapping
Built with ❤️ by @chyyran. Text content licensed under CC-BY-SA 4.0.