RTCIceCandidatePairStats constructor

RTCIceCandidatePairStats({
  1. required String transportId,
  2. required String localCandidateId,
  3. required String remoteCandidateId,
  4. required RTCStatsIceCandidatePairState state,
  5. bool? nominated,
  6. int? packetsSent,
  7. int? packetsReceived,
  8. int? bytesSent,
  9. int? bytesReceived,
  10. double? lastPacketSentTimestamp,
  11. double? lastPacketReceivedTimestamp,
  12. double? totalRoundTripTime,
  13. double? currentRoundTripTime,
  14. double? availableOutgoingBitrate,
  15. double? availableIncomingBitrate,
  16. int? requestsReceived,
  17. int? requestsSent,
  18. int? responsesReceived,
  19. int? responsesSent,
  20. int? consentRequestsSent,
  21. int? packetsDiscardedOnSend,
  22. 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);