Class MediaSinkInfo
Media sink information.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class MediaSinkInfo : Info
Constructors
MediaSinkInfo()
Initializes a new instance of the MediaSinkInfo class.
Declaration
public MediaSinkInfo()
Properties
InputFormat
Gets or sets the media sink input format.
Declaration
public FormatInfo InputFormat { get; set; }
Property Value
Type | Description |
---|---|
FormatInfo |
Label
Gets or sets the media sink label.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OutputId
Gets or sets the media sink output id.
Declaration
public string OutputId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OutputName
Gets or sets the media sink output name.
Declaration
public string OutputName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Tag
Gets or sets the media sink tag.
Declaration
public string Tag { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected override void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
System.String | valueJson | The value in JSON format. |
Overrides
FromJson(String)
Deserializes an instance from JSON.
Declaration
public static MediaSinkInfo FromJson(string mediaSinkInfoJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaSinkInfoJson | The serialized JSON. |
Returns
Type | Description |
---|---|
MediaSinkInfo | The deserialized instance. |
FromJsonArray(String)
Deserializes an array from JSON.
Declaration
public static MediaSinkInfo[] FromJsonArray(string mediaSinkInfosJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaSinkInfosJson | The serialized JSON. |
Returns
Type | Description |
---|---|
MediaSinkInfo[] | The deserialized array. |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected override void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String, System.String> | jsonObject | The JSON object. |
Overrides
ToJson()
Serializes this instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(MediaSinkInfo)
Serializes an instance to JSON.
Declaration
public static string ToJson(MediaSinkInfo mediaSinkInfo)
Parameters
Type | Name | Description |
---|---|---|
MediaSinkInfo | mediaSinkInfo | The instance to serialize. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |
ToJsonArray(MediaSinkInfo[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(MediaSinkInfo[] mediaSinkInfos)
Parameters
Type | Name | Description |
---|---|---|
MediaSinkInfo[] | mediaSinkInfos | The array to serialize. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |