mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Add support for multiple ice server groups
This commit is contained in:
committed by
Greyson Parrelli
parent
4f61b2ad33
commit
893ef5d08c
@@ -3,6 +3,7 @@ package org.whispersystems.signalservice.api.messages.calls;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class TurnServerInfo {
|
||||
@@ -22,6 +23,9 @@ public class TurnServerInfo {
|
||||
@JsonProperty
|
||||
private List<String> urlsWithIps;
|
||||
|
||||
@JsonProperty
|
||||
private List<TurnServerInfo> iceServers;
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
@@ -42,4 +46,8 @@ public class TurnServerInfo {
|
||||
public List<String> getUrlsWithIps() {
|
||||
return urlsWithIps;
|
||||
}
|
||||
|
||||
public List<TurnServerInfo> getIceServers() {
|
||||
return (iceServers != null) ? iceServers : Collections.emptyList();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user