Alex Drake | 43faee0 | 2019-08-12 16:27:34 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | package org.webrtc; |
| 12 | |
| 13 | /** |
| 14 | * Representation of a change in selected ICE candidate pair. |
| 15 | * {@code CandidatePairChangeEvent} in the C++ API. |
| 16 | */ |
| 17 | public final class CandidatePairChangeEvent { |
| 18 | public final IceCandidate local; |
| 19 | public final IceCandidate remote; |
| 20 | public final int lastDataReceivedMs; |
| 21 | public final String reason; |
| 22 | |
| 23 | @CalledByNative |
| 24 | CandidatePairChangeEvent( |
| 25 | IceCandidate local, IceCandidate remote, int lastDataReceivedMs, String reason) { |
| 26 | this.local = local; |
| 27 | this.remote = remote; |
| 28 | this.lastDataReceivedMs = lastDataReceivedMs; |
| 29 | this.reason = reason; |
| 30 | } |
| 31 | } |