package server.logic.ws_protocol.JSON.handlers.system.entyties;

import server.logic.ws_protocol.JSON.entyties.Net_Response;

import java.util.ArrayList;
import java.util.List;

public class Net_GetCallIceConfig_Response extends Net_Response {
    public static class TurnServerConfig {
        private String id = "";
        private List<String> urls = new ArrayList<>();
        private String username = "";
        private String password = "";

        public String getId() { return id; }
        public void setId(String id) { this.id = id; }
        public List<String> getUrls() { return urls; }
        public void setUrls(List<String> urls) { this.urls = urls; }
        public String getUsername() { return username; }
        public void setUsername(String username) { this.username = username; }
        public String getPassword() { return password; }
        public void setPassword(String password) { this.password = password; }
    }

    private List<String> stunUrls = new ArrayList<>();
    private List<String> turnUrls = new ArrayList<>();
    private String turnUsername = "";
    private String turnPassword = "";
    private List<TurnServerConfig> turnServers = new ArrayList<>();
    private boolean turnEnabled;
    private long generatedAtMs;
    private long expiresAtMs;
    private int ttlSec;

    public List<String> getStunUrls() { return stunUrls; }
    public void setStunUrls(List<String> stunUrls) { this.stunUrls = stunUrls; }

    public List<String> getTurnUrls() { return turnUrls; }
    public void setTurnUrls(List<String> turnUrls) { this.turnUrls = turnUrls; }

    public String getTurnUsername() { return turnUsername; }
    public void setTurnUsername(String turnUsername) { this.turnUsername = turnUsername; }

    public String getTurnPassword() { return turnPassword; }
    public void setTurnPassword(String turnPassword) { this.turnPassword = turnPassword; }

    public List<TurnServerConfig> getTurnServers() { return turnServers; }
    public void setTurnServers(List<TurnServerConfig> turnServers) { this.turnServers = turnServers; }

    public boolean isTurnEnabled() { return turnEnabled; }
    public void setTurnEnabled(boolean turnEnabled) { this.turnEnabled = turnEnabled; }

    public long getGeneratedAtMs() { return generatedAtMs; }
    public void setGeneratedAtMs(long generatedAtMs) { this.generatedAtMs = generatedAtMs; }

    public long getExpiresAtMs() { return expiresAtMs; }
    public void setExpiresAtMs(long expiresAtMs) { this.expiresAtMs = expiresAtMs; }

    public int getTtlSec() { return ttlSec; }
    public void setTtlSec(int ttlSec) { this.ttlSec = ttlSec; }
}
