Class MediaStats
Media stats.
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)
System.Object.ToString()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class MediaStats : BaseStats
Properties
Track
Gets the first track's stats.
Declaration
public MediaTrackStats Track { get; }
Property Value
Type | Description |
---|---|
MediaTrackStats |
Tracks
Gets the tracks' stats.
Declaration
public MediaTrackStats[] Tracks { get; }
Property Value
Type | Description |
---|---|
MediaTrackStats[] |
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)
Derializes media stats from JSON.
Declaration
public static MediaStats FromJson(string mediaJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaJson | The media's stats JSON. |
Returns
Type | Description |
---|---|
MediaStats |
GetTrack(String)
Gets a track by its identifier.
Declaration
public MediaTrackStats GetTrack(string trackId)
Parameters
Type | Name | Description |
---|---|---|
System.String | trackId | The track identifier. |
Returns
Type | Description |
---|---|
MediaTrackStats |
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 to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(MediaStats)
Serializes media stats to JSON.
Declaration
public static string ToJson(MediaStats media)
Parameters
Type | Name | Description |
---|---|---|
MediaStats | media | The media's stats. |
Returns
Type | Description |
---|---|
System.String |