public static class TdApi.TestProxy extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
dcId
Identifier of a datacenter, with which to test connection.
|
int |
port
Proxy server port.
|
java.lang.String |
server
Proxy server IP address.
|
double |
timeout
The maximum overall timeout for the request.
|
TdApi.ProxyType |
type
Proxy type.
|
Constructor and Description |
---|
TestProxy()
Default constructor for a function, which sends a simple network request to the Telegram servers via proxy; for testing only.
|
TestProxy(java.lang.String server,
int port,
TdApi.ProxyType type,
int dcId,
double timeout)
Creates a function, which sends a simple network request to the Telegram servers via proxy; for testing only.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String server
public int port
public TdApi.ProxyType type
public int dcId
public double timeout
public static final int CONSTRUCTOR
public TestProxy()
Returns Ok
public TestProxy(java.lang.String server, int port, TdApi.ProxyType type, int dcId, double timeout)
Returns Ok
server
- Proxy server IP address.port
- Proxy server port.type
- Proxy type.dcId
- Identifier of a datacenter, with which to test connection.timeout
- The maximum overall timeout for the request.public int getConstructor()
getConstructor
in class TdApi.Function