Inherits td::td_api::Function.
|
string | name_ |
| The name of the option.
|
|
|
static const std::int32_t | ID = -1572495746 |
| Identifier uniquely determining a type of the object.
|
|
Returns the value of an option by its name. (Check the list of available options on https://core.telegram.org/tdlib/options.) Can be called before authorization. Can be called synchronously for options "version" and "commit_hash".
Returns object_ptr<OptionValue>.
◆ getOption() [1/2]
td::td_api::getOption::getOption |
( |
| ) |
|
Default constructor for a function, which returns the value of an option by its name. (Check the list of available options on https://core.telegram.org/tdlib/options.) Can be called before authorization. Can be called synchronously for options "version" and "commit_hash".
Returns object_ptr<OptionValue>.
◆ getOption() [2/2]
td::td_api::getOption::getOption |
( |
string const & |
name_ | ) |
|
|
explicit |
Creates a function, which returns the value of an option by its name. (Check the list of available options on https://core.telegram.org/tdlib/options.) Can be called before authorization. Can be called synchronously for options "version" and "commit_hash".
Returns object_ptr<OptionValue>.
- Parameters
-
[in] | name_ | The name of the option. |
◆ get_id()
std::int32_t td::td_api::getOption::get_id |
( |
| ) |
const |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
- Returns
- this->ID.
Implements td::TlObject.
◆ store()
void td::td_api::getOption::store |
( |
TlStorerToString & |
s, |
|
|
const char * |
field_name |
|
) |
| const |
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
- Parameters
-
[in] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements td::TlObject.
The documentation for this class was generated from the following file: