public static class TdApi.AddProxy extends TdApi.Function
Returns Proxy
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
enable
True, if the proxy needs to be enabled.
|
int |
port
Proxy server port.
|
java.lang.String |
server
Proxy server IP address.
|
TdApi.ProxyType |
type
Proxy type.
|
Constructor and Description |
---|
AddProxy()
Default constructor for a function, which adds a proxy server for network requests.
|
AddProxy(java.lang.String server,
int port,
boolean enable,
TdApi.ProxyType type)
Creates a function, which adds a proxy server for network requests.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String server
public int port
public boolean enable
public TdApi.ProxyType type
public static final int CONSTRUCTOR
public AddProxy()
Returns Proxy
public AddProxy(java.lang.String server, int port, boolean enable, TdApi.ProxyType type)
Returns Proxy
server
- Proxy server IP address.port
- Proxy server port.enable
- True, if the proxy needs to be enabled.type
- Proxy type.public int getConstructor()
getConstructor
in class TdApi.Function