Package it.tdlight.jni
Class TdApi.EnableProxy
- Enclosing class:
- TdApi
public static class TdApi.EnableProxy extends TdApi.Function<TdApi.Ok>
Enables a proxy. Only one proxy can
be enabled at a time. Can be called before authorization.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
int
proxyId
Proxy identifier. -
Constructor Summary
Constructors Constructor Description EnableProxy()
Enables a proxy.EnableProxy(int proxyId)
Enables a proxy.EnableProxy(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput 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. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
EnableProxy
public EnableProxy()Enables a proxy. Only one proxy can be enabled at a time. Can be called before authorization.Returns
Ok
-
EnableProxy
public EnableProxy(int proxyId)Enables a proxy. Only one proxy can be enabled at a time. Can be called before authorization.Returns
Ok
- Parameters:
proxyId
- int Proxy identifier.
-
EnableProxy
- 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()
-