me.qyh.instd4j.config.DefaultProxyConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of instd4j Show documentation
Show all versions of instd4j Show documentation
Instagram private api for download
package me.qyh.instd4j.config;
public class DefaultProxyConfig implements ProxyConfig {
private final String addr;
private final Integer port;
public DefaultProxyConfig(String addr, Integer port) {
this.addr = addr;
this.port = port;
}
@Override
public Integer getPort() {
return port;
}
@Override
public String getAddr() {
return addr;
}
@Override
public boolean isEnable() {
return addr != null && port != null && !addr.isEmpty();
}
}