Package it.tdlight.jni
Class TdApi.PingProxy
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.PingProxy
- Enclosing class:
- TdApi
public static class TdApi.PingProxy extends TdApi.Function
Computes time needed to receive a
response from a Telegram server through
a proxy. Can be called before authorization.
Returns Seconds
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
int
proxyId
Proxy identifier. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
proxyId
public int proxyIdProxy identifier. Use 0 to ping a Telegram server without a proxy. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
PingProxy
public PingProxy()Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization.Returns
Seconds
-
PingProxy
public PingProxy(int proxyId)Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization.Returns
Seconds
- Parameters:
proxyId
- int Proxy identifier. Use 0 to ping a Telegram server without a proxy.
-
PingProxy
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-