Class TransportReport
Transport report.
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 TransportReport : Report
Constructors
TransportReport()
Initializes a new instance of the TransportReport class.
Declaration
public TransportReport()
Properties
BytesReceived
Gets or sets the number of bytes received on this transport.
Declaration
public long? BytesReceived { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
BytesSent
Gets or sets the number of bytes sent on this transport.
Declaration
public long? BytesSent { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
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 Json to a TransportReport.
Declaration
public static TransportReport FromJson(string transportReportJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | transportReportJson | The serialized Json. |
Returns
Type | Description |
---|---|
TransportReport | The deserialized TransportReport. |
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(TransportReport)
Serializes an instance to Json.
Declaration
public static string ToJson(TransportReport transportReport)
Parameters
Type | Name | Description |
---|---|---|
TransportReport | transportReport | The instance to serialize. |
Returns
Type | Description |
---|---|
System.String | Serialized Json. |