Package org.drinkless.tdlib
Class TdApi.AddProxy
- Enclosing class:
TdApi
Adds a proxy server for network requests. Can be called before authorization.
Returns AddedProxy
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionComment to set for the proxy.static final intIdentifier uniquely determining type of the object.booleanPass true to immediately enable the proxy.The proxy to add. -
Constructor Summary
ConstructorsConstructorDescriptionAddProxy()Default constructor for a function, which adds a proxy server for network requests.AddProxy(TdApi.Proxy proxy, boolean enable, String comment) Creates a function, which adds a proxy server for network requests. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
proxy
The proxy to add. -
enable
public boolean enablePass true to immediately enable the proxy. -
comment
Comment to set for the proxy. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
AddProxy
public AddProxy()Default constructor for a function, which adds a proxy server for network requests. Can be called before authorization.Returns
AddedProxy -
AddProxy
Creates a function, which adds a proxy server for network requests. Can be called before authorization.Returns
AddedProxy- Parameters:
proxy- The proxy to add.enable- Pass true to immediately enable the proxy.comment- Comment to set for 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.Function<TdApi.AddedProxy>- Returns:
- this.CONSTRUCTOR
-