Search Results for

    Show / Hide Table of Contents

    Class MediaStats

    Media stats.

    Inheritance
    System.Object
    BaseStats
    MediaStats
    Inherited Members
    BaseStats.Id
    BaseStats.Timestamp
    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
    BaseStats.DeserializeProperties(String, String)

    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
    Dictionary<System.String, System.String> jsonObject

    The JSON object.

    Overrides
    BaseStats.SerializeProperties(Dictionary<String, String>)

    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
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0