Package org.drinkless.tdlib
Class TdApi.SetOption
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.SetOption
-
- Enclosing class:
- TdApi
public static class TdApi.SetOption extends TdApi.Function
Sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization.Returns
Ok
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.StringnameThe name of the option.TdApi.OptionValuevalueThe new value of the option; pass null to reset option value to a default value.
-
Constructor Summary
Constructors Constructor Description SetOption()Default constructor for a function, which sets the value of an option.SetOption(String name, TdApi.OptionValue value)Creates a function, which sets the value of an option.
-
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
-
name
public String name
The name of the option.
-
value
public TdApi.OptionValue value
The new value of the option; pass null to reset option value to a default value.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SetOption
public SetOption()
Default constructor for a function, which sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization.Returns
Ok
-
SetOption
public SetOption(String name, TdApi.OptionValue value)
Creates a function, which sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization.Returns
Ok- Parameters:
name- The name of the option.value- The new value of the option; pass null to reset option value to a default value.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-