Class MediaSenderReport
Media sender report.
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 MediaSenderReport : MediaComponentReport
Constructors
MediaSenderReport()
Initializes a new instance of the MediaSenderReport class.
Declaration
public MediaSenderReport()
Properties
BytesSent
Gets or sets the number of bytes sent.
Declaration
public long? BytesSent { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
PacketsSent
Gets or sets the number of packets sent.
Declaration
public long? PacketsSent { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
RoundTripTime
Gets or sets the round-trip-time in milliseconds.
Declaration
public int? RoundTripTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
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 MediaSenderReport FromJson(string mediaSenderReportJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaSenderReportJson | The serialized JSON. |
Returns
Type | Description |
---|---|
MediaSenderReport | The deserialized instance. |
FromJsonArray(String)
Deserializes an array from JSON.
Declaration
public static MediaSenderReport[] FromJsonArray(string mediaSenderReportsJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaSenderReportsJson | The serialized JSON. |
Returns
Type | Description |
---|---|
MediaSenderReport[] | 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(MediaSenderReport)
Serializes an instance to JSON.
Declaration
public static string ToJson(MediaSenderReport mediaSenderReport)
Parameters
Type | Name | Description |
---|---|---|
MediaSenderReport | mediaSenderReport | The instance to serialize. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |
ToJsonArray(MediaSenderReport[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(MediaSenderReport[] mediaSenderReports)
Parameters
Type | Name | Description |
---|---|---|
MediaSenderReport[] | mediaSenderReports | The array to serialize. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |