/ fm / liveswitch / TransportReport
Class: TransportReport
fm.liveswitch.TransportReport
Transport report.
Hierarchy
-
↳ TransportReport
Table of contents
Constructors
Methods
- deserializeProperties
- getBytesReceived
- getBytesSent
- getTypeString
- serializeProperties
- setBytesReceived
- setBytesSent
- toJson
- fromJson
- processArray
- processBoolean
- processBooleanArray
- processDouble
- processFloat
- processFloatArray
- processInteger
- processIntegerArray
- processLong
- processLongArray
- processObject
- processShort
- processShortArray
- processString
- toJson
Constructors
constructor
+ new TransportReport(): TransportReport
Initializes a new instance of the [[fm.liveswitch.transportReport]] class.
Returns: TransportReport
Inherited from: Report
Defined in: Generated/TypeScript/fm.liveswitch/TransportReport.ts:16
+ new TransportReport(stats
: TransportStats, lastStats
: TransportStats): TransportReport
Parameters:
Name | Type |
---|---|
stats |
TransportStats |
lastStats |
TransportStats |
Returns: TransportReport
Defined in: Generated/TypeScript/fm.liveswitch/TransportReport.ts:23
Methods
deserializeProperties
▸ Protected
deserializeProperties(key
: string, valueJson
: string): void
Deserializes the properties.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The key. |
valueJson |
string | The value in JSON format. |
Returns: void
Overrides: Report
Defined in: Generated/TypeScript/fm.liveswitch/TransportReport.ts:84
getBytesReceived
▸ getBytesReceived(): number
Gets the number of bytes received on this transport.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/TransportReport.ts:106
getBytesSent
▸ getBytesSent(): number
Gets the number of bytes sent on this transport.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/TransportReport.ts:118
getTypeString
▸ getTypeString(): string
Returns: string
Overrides: Report
Defined in: Generated/TypeScript/fm.liveswitch/TransportReport.ts:10
serializeProperties
▸ Protected
serializeProperties(jsonObject
: Hash<string, string>): void
Serializes the properties.
Parameters:
Name | Type | Description |
---|---|---|
jsonObject |
Hash<string, string> | The JSON object. |
Returns: void
Overrides: Report
Defined in: Generated/TypeScript/fm.liveswitch/TransportReport.ts:131
setBytesReceived
▸ setBytesReceived(value
: number): void
Sets the number of bytes received on this transport.
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/TransportReport.ts:149
setBytesSent
▸ setBytesSent(value
: number): void
Sets the number of bytes sent on this transport.
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/TransportReport.ts:161
toJson
▸ toJson(): string
Serializes this instance to Json.
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/TransportReport.ts:173
fromJson
▸ Static
fromJson(transportReportJson
: string): TransportReport
Deserializes Json to a TransportReport.
Parameters:
Name | Type | Description |
---|---|---|
transportReportJson |
string | The serialized Json. |
Returns: TransportReport
The deserialized TransportReport.
Defined in: Generated/TypeScript/fm.liveswitch/TransportReport.ts:50
processArray
▸ Static
processArray<T>(newValues
: T[], oldValues
: T[]): T[]
Processes an array for a report.
Type parameters:
Name | Type |
---|---|
T |
IEquivalent<T, T> |
Parameters:
Name | Type | Description |
---|---|---|
newValues |
T[] | The new values. |
oldValues |
T[] | The old values. |
Returns: T[]
The new values, if the new values are not equivalent to the old values; otherwise null.
Inherited from: Report
Defined in: Generated/TypeScript/fm.liveswitch/Report.ts:31
processBoolean
▸ Static
processBoolean(newValue
: boolean, oldValue
: boolean): boolean
Processes a boolean for a report.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
boolean | The new value. |
oldValue |
boolean | The old value. |
Returns: boolean
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Report
Defined in: Generated/TypeScript/fm.liveswitch/Report.ts:57
processBooleanArray
▸ Static
processBooleanArray(newValues
: boolean[], oldValues
: boolean[]): boolean[]
Processes a boolean array for a report.
Parameters:
Name | Type | Description |
---|---|---|
newValues |
boolean[] | The new values. |
oldValues |
boolean[] | The old values. |
Returns: boolean[]
The new values, if the new values do not equal the old values; otherwise null.
Inherited from: Report
Defined in: Generated/TypeScript/fm.liveswitch/Report.ts:72
processDouble
▸ Static
processDouble(newValue
: number, oldValue
: number): number
Processes a double for a report.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
number | The new value. |
oldValue |
number | The old value. |
Returns: number
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Report
Defined in: Generated/TypeScript/fm.liveswitch/Report.ts:98
processFloat
▸ Static
processFloat(newValue
: number, oldValue
: number): number
Processes a float for a report.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
number | The new value. |
oldValue |
number | The old value. |
Returns: number
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Report
Defined in: Generated/TypeScript/fm.liveswitch/Report.ts:113
processFloatArray
▸ Static
processFloatArray(newValues
: number[], oldValues
: number[]): number[]
Processes a float array for a report.
Parameters:
Name | Type | Description |
---|---|---|
newValues |
number[] | The new values. |
oldValues |
number[] | The old values. |
Returns: number[]
The new values, if the new values do not equal the old values; otherwise null.
Inherited from: Report
Defined in: Generated/TypeScript/fm.liveswitch/Report.ts:128
processInteger
▸ Static
processInteger(newValue
: number, oldValue
: number): number
Processes an integer for a report.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
number | The new value. |
oldValue |
number | The old value. |
Returns: number
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Report
Defined in: Generated/TypeScript/fm.liveswitch/Report.ts:154
processIntegerArray
▸ Static
processIntegerArray(newValues
: number[], oldValues
: number[]): number[]
Processes a integer array for a report.
Parameters:
Name | Type | Description |
---|---|---|
newValues |
number[] | The new values. |
oldValues |
number[] | The old values. |
Returns: number[]
The new values, if the new values do not equal the old values; otherwise null.
Inherited from: Report
Defined in: Generated/TypeScript/fm.liveswitch/Report.ts:171
processLong
▸ Static
processLong(newValue
: number, oldValue
: number): number
Processes a long for a report.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
number | The new value. |
oldValue |
number | The old value. |
Returns: number
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Report
Defined in: Generated/TypeScript/fm.liveswitch/Report.ts:197
processLongArray
▸ Static
processLongArray(newValues
: number[], oldValues
: number[]): number[]
Processes a long array for a report.
Parameters:
Name | Type | Description |
---|---|---|
newValues |
number[] | The new values. |
oldValues |
number[] | The old values. |
Returns: number[]
The new values, if the new values do not equal the old values; otherwise null.
Inherited from: Report
Defined in: Generated/TypeScript/fm.liveswitch/Report.ts:214
processObject
▸ Static
processObject<T>(newValue
: T, oldValue
: T): T
Processes an array for a report.
Type parameters:
Name | Type |
---|---|
T |
Object & IEquivalent<T, T> |
Parameters:
Name | Type | Description |
---|---|---|
newValue |
T | The new value. |
oldValue |
T | The old value. |
Returns: T
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Report
Defined in: Generated/TypeScript/fm.liveswitch/Report.ts:240
processShort
▸ Static
processShort(newValue
: number, oldValue
: number): number
Processes a short for a report.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
number | The new value. |
oldValue |
number | The old value. |
Returns: number
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Report
Defined in: Generated/TypeScript/fm.liveswitch/Report.ts:261
processShortArray
▸ Static
processShortArray(newValues
: number[], oldValues
: number[]): number[]
Processes a short array for a report.
Parameters:
Name | Type | Description |
---|---|---|
newValues |
number[] | The new values. |
oldValues |
number[] | The old values. |
Returns: number[]
The new values, if the new values do not equal the old values; otherwise null.
Inherited from: Report
Defined in: Generated/TypeScript/fm.liveswitch/Report.ts:278
processString
▸ Static
processString(newValue
: string, oldValue
: string): string
Processes a string for a report.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
string | The new value. |
oldValue |
string | The old value. |
Returns: string
The new value, if the new value does not equal the old value; otherwise null.
Inherited from: Report
Defined in: Generated/TypeScript/fm.liveswitch/Report.ts:304
toJson
▸ Static
toJson(transportReport
: TransportReport): string
Serializes an instance to Json.
Parameters:
Name | Type | Description |
---|---|---|
transportReport |
TransportReport | The instance to serialize. |
Returns: string
Serialized Json.
Defined in: Generated/TypeScript/fm.liveswitch/TransportReport.ts:68