Class SinkOutput
A sink output (e.g. device, track, screen).
Inheritance
System.Object
SinkOutput
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 SinkOutput
Constructors
SinkOutput(String, String)
Initializes a new instance of the SinkOutput class.
Declaration
public SinkOutput(string id, string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The identifier. |
System.String | name | The name. |
Properties
Id
Gets the identifier.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
Name
Gets the name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
FromJson(String)
Deserializes an instance from JSON.
Declaration
public static SinkOutput FromJson(string sinkOutputJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | sinkOutputJson | The sink output JSON. |
Returns
Type | Description |
---|---|
SinkOutput |
FromJsonArray(String)
Deserializes an instance array from JSON.
Declaration
public static SinkOutput[] FromJsonArray(string sinkOutputsJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | sinkOutputsJson | The sink outputs JSON. |
Returns
Type | Description |
---|---|
SinkOutput[] |
ToJson()
Serializes this instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(SinkOutput)
Serializes an instance to JSON.
Declaration
public static string ToJson(SinkOutput sinkOutput)
Parameters
Type | Name | Description |
---|---|---|
SinkOutput | sinkOutput | The sink output. |
Returns
Type | Description |
---|---|
System.String |
ToJsonArray(SinkOutput[])
Serializes an instance array to JSON.
Declaration
public static string ToJsonArray(SinkOutput[] sinkOutputs)
Parameters
Type | Name | Description |
---|---|---|
SinkOutput[] | sinkOutputs | The sink outputs. |
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()