Class MediaSourceStats
Media source stats.
Implements
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.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class MediaSourceStats : BaseStats, IEquivalent<MediaSourceStats>
Properties
InputId
Gets or sets the input identifier.
Declaration
public string InputId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
InputName
Gets or sets the input name.
Declaration
public string InputName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Label
Gets or sets the label.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Muted
Gets or sets the muted flag.
Declaration
public bool Muted { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
OutputFormat
Gets or sets the output format.
Declaration
public FormatInfo OutputFormat { get; set; }
Property Value
Type | Description |
---|---|
FormatInfo |
Tag
Gets or sets the 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 MediaSourceStats FromJson(string instanceJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | instanceJson | The serialized Json. |
Returns
Type | Description |
---|---|
MediaSourceStats | The deserialized VideoSourceInfo. |
IsEquivalent(MediaSourceStats)
Checks if a source is equivalent to this one.
Declaration
public bool IsEquivalent(MediaSourceStats instance)
Parameters
Type | Name | Description |
---|---|---|
MediaSourceStats | instance | The source. |
Returns
Type | Description |
---|---|
System.Boolean |
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(MediaSourceStats)
Serializes an instance to JSON.
Declaration
public static string ToJson(MediaSourceStats instance)
Parameters
Type | Name | Description |
---|---|---|
MediaSourceStats | instance | The instance to serialize. |
Returns
Type | Description |
---|---|
System.String | Serialized Json. |