Package it.tdlight.jni
Class TdApi.SetOption
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.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 int
CONSTRUCTOR
String
name
The name of the option.TdApi.OptionValue
value
The new value of the option. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
name
The name of the option. -
value
The new value of the option. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
SetOption
public SetOption()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
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
- String The name of the option.value
- OptionValue The new value of the option.
-
SetOption
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-