Package org.drinkless.tdlib
Class TdApi.Proxy
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Proxy
- Enclosing class:
- TdApi
Contains information about a proxy server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.intUnique identifier of the proxy.booleanTrue, if the proxy is enabled now.intPoint in time (Unix timestamp) when the proxy was last used; 0 if never.intProxy server port.Proxy server domain or IP address.Type of the proxy. -
Constructor Summary
ConstructorsConstructorDescriptionProxy()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
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
id
public int idUnique identifier of the proxy. -
server
Proxy server domain or IP address. -
port
public int portProxy server port. -
lastUsedDate
public int lastUsedDatePoint in time (Unix timestamp) when the proxy was last used; 0 if never. -
isEnabled
public boolean isEnabledTrue, if the proxy is enabled now. -
type
Type of the proxy. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
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 domain or 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 Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-