summaryrefslogtreecommitdiff
path: root/core/src/main/java/de/danoeh/antennapod/core/service/download/ProxyConfig.java
blob: 797001e3aeccf8cde8f074ef2114a2136dd29f72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package de.danoeh.antennapod.core.service.download;

import androidx.annotation.Nullable;

import java.net.Proxy;

public class ProxyConfig {

    public final Proxy.Type type;
    @Nullable public final String host;
    public final int port;
    @Nullable public final String username;
    @Nullable public final String password;

    public static final int DEFAULT_PORT = 8080;

    public ProxyConfig(Proxy.Type type, String host, int port, String username, String password) {
        this.type = type;
        this.host = host;
        this.port = port;
        this.username = username;
        this.password = password;
    }
}