Class MediaSourceInfo
Media source information.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class MediaSourceInfo : Info
Constructors
MediaSourceInfo()
Initializes a new instance of the MediaSourceInfo class.
Declaration
public MediaSourceInfo()
Properties
InputId
Gets or sets the media source input identifier.
Declaration
public string InputId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
InputName
Gets or sets the media source input name.
Declaration
public string InputName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Label
Gets or sets the media source label.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Muted
Gets or sets the whether the media source is muted.
Declaration
public bool? Muted { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
OutputFormat
Gets or sets the media source output format.
Declaration
public FormatInfo OutputFormat { get; set; }
Property Value
Type | Description |
---|---|
FormatInfo |
Tag
Gets or sets the media source 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 MediaSourceInfo FromJson(string mediaSourceInfoJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaSourceInfoJson | The serialized JSON. |
Returns
Type | Description |
---|---|
MediaSourceInfo | The deserialized instance. |
FromJsonArray(String)
Deserializes an array from JSON.
Declaration
public static MediaSourceInfo[] FromJsonArray(string mediaSourceInfosJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaSourceInfosJson | The serialized JSON. |
Returns
Type | Description |
---|---|
MediaSourceInfo[] | The deserialized array. |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected override void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
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(MediaSourceInfo)
Serializes an instance to JSON.
Declaration
public static string ToJson(MediaSourceInfo mediaSourceInfo)
Parameters
Type | Name | Description |
---|---|---|
MediaSourceInfo | mediaSourceInfo | The instance to serialize. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |
ToJsonArray(MediaSourceInfo[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(MediaSourceInfo[] mediaSourceInfos)
Parameters
Type | Name | Description |
---|---|---|
MediaSourceInfo[] | mediaSourceInfos | The array to serialize. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |