Class SourceInput
A source input (e.g. device, track, screen).
Inheritance
System.Object
SourceInput
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)
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class SourceInput
Constructors
SourceInput(String, String)
Initializes a new instance of the SourceInput class.
Declaration
public SourceInput(string id, string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The identifier. |
System.String | name | The name. |
Properties
Id
Gets or sets the identifier.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Gets or sets the name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
FromJson(String)
Deserializes an instance from JSON.
Declaration
public static SourceInput FromJson(string sourceInputJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | sourceInputJson | The source input JSON. |
Returns
Type | Description |
---|---|
SourceInput |
FromJsonArray(String)
Deserializes an instance array from JSON.
Declaration
public static SourceInput[] FromJsonArray(string sourceInputsJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | sourceInputsJson | The source inputs JSON. |
Returns
Type | Description |
---|---|
SourceInput[] |
ToJson()
Serializes this instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(SourceInput)
Serializes an instance to JSON.
Declaration
public static string ToJson(SourceInput sourceInput)
Parameters
Type | Name | Description |
---|---|---|
SourceInput | sourceInput | The source input. |
Returns
Type | Description |
---|---|
System.String |
ToJsonArray(SourceInput[])
Serializes an instance array to JSON.
Declaration
public static string ToJsonArray(SourceInput[] sourceInputs)
Parameters
Type | Name | Description |
---|---|---|
SourceInput[] | sourceInputs | The source inputs. |
Returns
Type | Description |
---|---|
System.String |
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents this instance. |
Overrides
System.Object.ToString()