Interface IInputSerializer
Serializes input configuration
Namespace: Snowflake.Configuration.Input
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public interface IInputSerializer
Methods
Serialize(IInputTemplate, IDeviceInputMapping)
Serializes the specified input template.
Declaration
string Serialize(IInputTemplate inputTemplate, IDeviceInputMapping inputMapping)
Parameters
Type | Name | Description |
---|---|---|
IInput |
inputTemplate | The input template to serialize |
IDevice |
inputMapping | The input mapping to serialize with |
Returns
Type | Description |
---|---|
System. |
The entire input template serialized as a string |
SerializeInput(String, ControllerElement, IDeviceInputMapping)
Serializes a controller element line using the provided input mapper.
Declaration
string SerializeInput(string key, ControllerElement element, IDeviceInputMapping inputMapping)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key of the option |
Controller |
element | The controller element to serialize |
IDevice |
inputMapping | The input mapping to serialize with |
Returns
Type | Description |
---|---|
System. |