public static class TdApi.AddProxy extends TdApi.Function<TdApi.Proxy>
Returns Proxy
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
enable
Pass true to immediately enable the proxy.
|
int |
port
Proxy server port.
|
java.lang.String |
server
Proxy server domain or 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()
Returns an identifier uniquely determining type of the object.
|
toStringpublic 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 domain or IP address.port - Proxy server port.enable - Pass true to immediately enable the proxy.type - Proxy type.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object