MultipathStats

Used to summarize statistics of each network path in multipath transmission.

class MultipathStats implements AgoraSerializable {
  const MultipathStats(
      {this.lanTxBytes,
      this.lanRxBytes,
      this.wifiTxBytes,
      this.wifiRxBytes,
      this.mobileTxBytes,
      this.mobileRxBytes,
      this.activePathNum,
      this.pathStats});

  @JsonKey(name: 'lanTxBytes')
  final int? lanTxBytes;

  @JsonKey(name: 'lanRxBytes')
  final int? lanRxBytes;

  @JsonKey(name: 'wifiTxBytes')
  final int? wifiTxBytes;

  @JsonKey(name: 'wifiRxBytes')
  final int? wifiRxBytes;

  @JsonKey(name: 'mobileTxBytes')
  final int? mobileTxBytes;

  @JsonKey(name: 'mobileRxBytes')
  final int? mobileRxBytes;

  @JsonKey(name: 'activePathNum')
  final int? activePathNum;

  @JsonKey(name: 'pathStats')
  final List<PathStats>? pathStats;

  factory MultipathStats.fromJson(Map<String, dynamic> json) =>
      _$MultipathStatsFromJson(json);

  @override
  Map<String, dynamic> toJson() => _$MultipathStatsToJson(this);
}
Since
Available since v4.6.2.

Properties

lanTxBytes
Total bytes sent over the LAN path.
lanRxBytes
Total bytes received over the LAN path.
wifiTxBytes
Total bytes sent over the Wi-Fi path.
wifiRxBytes
Total bytes received over the Wi-Fi path.
mobileTxBytes
Total bytes sent over the mobile network path.
mobileRxBytes
Total bytes received over the mobile network path.
activePathNum
The number of currently active transmission paths.
pathStats
An array of statistics for each active transmission path. See PathStats.