Package org.drinkless.tdlib
Class TdApi.Proxy
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Proxy
-
- Enclosing class:
- TdApi
public static class TdApi.Proxy extends TdApi.Object
Contains information about a proxy server.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.intidUnique identifier of the proxy.booleanisEnabledTrue, if the proxy is enabled now.intlastUsedDatePoint in time (Unix timestamp) when the proxy was last used; 0 if never.intportProxy server port.StringserverProxy server IP address.TdApi.ProxyTypetypeType of the proxy.
-
Constructor Summary
Constructors Constructor Description Proxy()Contains information about a proxy server.Proxy(int id, String server, int port, int lastUsedDate, boolean isEnabled, TdApi.ProxyType type)Contains information about a proxy server.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
id
public int id
Unique identifier of the proxy.
-
server
public String server
Proxy server IP address.
-
port
public int port
Proxy server port.
-
lastUsedDate
public int lastUsedDate
Point in time (Unix timestamp) when the proxy was last used; 0 if never.
-
isEnabled
public boolean isEnabled
True, if the proxy is enabled now.
-
type
public TdApi.ProxyType type
Type of the proxy.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Proxy
public Proxy()
Contains information about a proxy server.
-
Proxy
public Proxy(int id, String server, int port, int lastUsedDate, boolean isEnabled, TdApi.ProxyType type)Contains information about a proxy server.- Parameters:
id- Unique identifier of the proxy.server- Proxy server IP address.port- Proxy server port.lastUsedDate- Point in time (Unix timestamp) when the proxy was last used; 0 if never.isEnabled- True, if the proxy is enabled now.type- Type of the proxy.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-