RTCIceCandidatePairStats constructor
RTCIceCandidatePairStats({
- required String transportId,
- required String localCandidateId,
- required String remoteCandidateId,
- required RTCStatsIceCandidatePairState state,
- bool? nominated,
- int? packetsSent,
- int? packetsReceived,
- int? bytesSent,
- int? bytesReceived,
- double? lastPacketSentTimestamp,
- double? lastPacketReceivedTimestamp,
- double? totalRoundTripTime,
- double? currentRoundTripTime,
- double? availableOutgoingBitrate,
- double? availableIncomingBitrate,
- int? requestsReceived,
- int? requestsSent,
- int? responsesReceived,
- int? responsesSent,
- int? consentRequestsSent,
- int? packetsDiscardedOnSend,
- int? bytesDiscardedOnSend,
Implementation
factory RTCIceCandidatePairStats(
{required String transportId,
required String localCandidateId,
required String remoteCandidateId,
required RTCStatsIceCandidatePairState state,
bool? nominated,
int? packetsSent,
int? packetsReceived,
int? bytesSent,
int? bytesReceived,
double? lastPacketSentTimestamp,
double? lastPacketReceivedTimestamp,
double? totalRoundTripTime,
double? currentRoundTripTime,
double? availableOutgoingBitrate,
double? availableIncomingBitrate,
int? requestsReceived,
int? requestsSent,
int? responsesReceived,
int? responsesSent,
int? consentRequestsSent,
int? packetsDiscardedOnSend,
int? bytesDiscardedOnSend}) =>
RTCIceCandidatePairStats._(
transportId: transportId,
localCandidateId: localCandidateId,
remoteCandidateId: remoteCandidateId,
state: state.value,
nominated: nominated ?? undefined,
packetsSent: packetsSent ?? undefined,
packetsReceived: packetsReceived ?? undefined,
bytesSent: bytesSent ?? undefined,
bytesReceived: bytesReceived ?? undefined,
lastPacketSentTimestamp: lastPacketSentTimestamp ?? undefined,
lastPacketReceivedTimestamp: lastPacketReceivedTimestamp ?? undefined,
totalRoundTripTime: totalRoundTripTime ?? undefined,
currentRoundTripTime: currentRoundTripTime ?? undefined,
availableOutgoingBitrate: availableOutgoingBitrate ?? undefined,
availableIncomingBitrate: availableIncomingBitrate ?? undefined,
requestsReceived: requestsReceived ?? undefined,
requestsSent: requestsSent ?? undefined,
responsesReceived: responsesReceived ?? undefined,
responsesSent: responsesSent ?? undefined,
consentRequestsSent: consentRequestsSent ?? undefined,
packetsDiscardedOnSend: packetsDiscardedOnSend ?? undefined,
bytesDiscardedOnSend: bytesDiscardedOnSend ?? undefined);