java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Proxy
- Enclosing class:
- TdApi
Contains information about a proxy server.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.int
Unique identifier of the proxy.boolean
True, if the proxy is enabled now.int
Point in time (Unix timestamp) when the proxy was last used; 0 if never.int
Proxy server port.Proxy server IP address.Type of the proxy. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
id
public int idUnique identifier of the proxy. -
server
Proxy server 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 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.
-
Proxy
Contains information about a proxy server.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-