blob: 395b629c54e06c00453d7af020c7e6f4336ae1a9 [file] [log] [blame]
Alex Drake43faee02019-08-12 16:27:34 -07001/*
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
11package org.webrtc;
12
13/**
14 * Representation of a change in selected ICE candidate pair.
15 * {@code CandidatePairChangeEvent} in the C++ API.
16 */
17public 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}