TRTCSpeedTestResult class
Network speed test result
- Annotations
-
- @JsonSerializable(explicitToJson: true, includeIfNull: false)
Constructors
- TRTCSpeedTestResult({bool success = false, String errMsg = "", String ip = "", TRTCQuality quality = TRTCQuality.unknown, double upLostRate = 0.0, double downLostRate = 0.0, int rtt = 0, int availableUpBandwidth = 0, int availableDownBandwidth = 0, int upJitter = 0, int downJitter = 0})
-
TRTCSpeedTestResult.fromJson(Map<
String, dynamic> json) -
factory
Properties
- availableDownBandwidth ↔ int
-
- Field description: Downstream bandwidth (in kbps, -1: invalid value).
getter/setter pair - availableUpBandwidth ↔ int
-
- Field description: Upstream bandwidth (in kbps, -1: invalid value).
getter/setter pair - downJitter ↔ int
-
- Field description: Downlink data packet jitter (ms) refers to the stability of data communication in the user's current network environment. The smaller the value, the better. The normal value range is 0ms - 100ms. -1 means that the speed test failed to obtain an effective value. Generally, the Jitter of the WiFi network will be slightly larger than that of the 4G/5G environment.
getter/setter pair - downLostRate ↔ double
-
- Field description: Downstream packet loss rate between 0 and 1.0. For example, 0.2 indicates that 2 data packets may be lost in every 10 packets received from the server.
getter/setter pair - errMsg ↔ String
-
- Field description: Error message for network speed test.
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- ip ↔ String
-
- Field description: Server IP address.
getter/setter pair - quality ↔ TRTCQuality
-
- Field description: Network quality, which is tested and calculated based on the internal evaluation algorithm. For more information, please see TRTCQuality.
getter/setter pair - rtt ↔ int
-
- Field description: Delay in milliseconds, which is the round-trip time between the current device and TRTC server. The smaller the value, the better. The normal value range is 10–100 ms.
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- success ↔ bool
-
- Field description: Whether the network speed test is successful.
getter/setter pair - upJitter ↔ int
-
- Field description: Uplink data packet jitter (ms) refers to the stability of data communication in the user's current network environment. The smaller the value, the better. The normal value range is 0ms - 100ms. -1 means that the speed test failed to obtain an effective value. Generally, the Jitter of the WiFi network will be slightly larger than that of the 4G/5G environment.
getter/setter pair - upLostRate ↔ double
-
- Field description: Upstream packet loss rate between 0 and 1.0. For example, 0.3 indicates that 3 data packets may be lost in every 10 packets sent to the server.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited