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 Sink
Declaration
public SinkOutput(string id, string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The identifier. |
System. |
name | The name. |
Properties
Id
Gets the identifier.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System. |
Name
Gets the name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
FromJson(String)
Deserializes an instance from JSON.
Declaration
public static SinkOutput FromJson(string sinkOutputJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
sinkOutputJson | The sink output JSON. |
Returns
Type | Description |
---|---|
Sink |
FromJsonArray(String)
Deserializes an instance array from JSON.
Declaration
public static SinkOutput[] FromJsonArray(string sinkOutputsJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
sinkOutputsJson | The sink outputs JSON. |
Returns
Type | Description |
---|---|
Sink |
ToJson()
Serializes this instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(SinkOutput)
Serializes an instance to JSON.
Declaration
public static string ToJson(SinkOutput sinkOutput)
Parameters
Type | Name | Description |
---|---|---|
Sink |
sinkOutput | The sink output. |
Returns
Type | Description |
---|---|
System. |
ToJsonArray(SinkOutput[])
Serializes an instance array to JSON.
Declaration
public static string ToJsonArray(SinkOutput[] sinkOutputs)
Parameters
Type | Name | Description |
---|---|---|
Sink |
sinkOutputs | The sink outputs. |
Returns
Type | Description |
---|---|
System. |
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
A string that represents this instance. |
Overrides
System.Object.ToString()