Package org.drinkless.tdlib
Class TdApi.AddProxy
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.AddProxy
-
- Enclosing class:
- TdApi
public static class TdApi.AddProxy extends TdApi.Function
Adds a proxy server for network requests. Can be called before authorization.Returns
Proxy
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.booleanenableTrue, if the proxy needs to be enabled.intportProxy server port.StringserverProxy server IP address.TdApi.ProxyTypetypeProxy type.
-
Constructor Summary
Constructors Constructor Description AddProxy()Default constructor for a function, which adds a proxy server for network requests.AddProxy(String server, int port, boolean enable, TdApi.ProxyType type)Creates a function, which adds a proxy server for network requests.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
server
public String server
Proxy server IP address.
-
port
public int port
Proxy server port.
-
enable
public boolean enable
True, if the proxy needs to be enabled.
-
type
public TdApi.ProxyType type
Proxy type.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AddProxy
public AddProxy()
Default constructor for a function, which adds a proxy server for network requests. Can be called before authorization.Returns
Proxy
-
AddProxy
public AddProxy(String server, int port, boolean enable, TdApi.ProxyType type)
Creates a function, which adds a proxy server for network requests. Can be called before authorization.Returns
Proxy- Parameters:
server- Proxy server IP address.port- Proxy server port.enable- True, if the proxy needs to be enabled.type- Proxy type.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-