aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2026-02-08 13:45:05 +0300
committerlevlam <levlam@telegram.org>2026-02-08 13:45:05 +0300
commit8cd094ae8069871dc72e8fd0d3f402b89d73d2b5 (patch)
tree1cc510d4b0a8abdcdd3315f723b254d49fa48c34
parent6d509061574d684117f74133056aa43df89022fc (diff)
Improve InputGroupCallId field names.
-rw-r--r--td/telegram/InputGroupCallId.cpp8
-rw-r--r--td/telegram/InputGroupCallId.h24
2 files changed, 16 insertions, 16 deletions
diff --git a/td/telegram/InputGroupCallId.cpp b/td/telegram/InputGroupCallId.cpp
index f17a0be4d..c8952a6ab 100644
--- a/td/telegram/InputGroupCallId.cpp
+++ b/td/telegram/InputGroupCallId.cpp
@@ -17,16 +17,16 @@ InputGroupCallId::InputGroupCallId(const telegram_api::object_ptr<telegram_api::
return;
}
auto group_call = static_cast<const telegram_api::inputGroupCall *>(input_group_call.get());
- group_call_id = group_call->id_;
- access_hash = group_call->access_hash_;
+ group_call_id_ = group_call->id_;
+ access_hash_ = group_call->access_hash_;
}
telegram_api::object_ptr<telegram_api::inputGroupCall> InputGroupCallId::get_input_group_call() const {
- return telegram_api::make_object<telegram_api::inputGroupCall>(group_call_id, access_hash);
+ return telegram_api::make_object<telegram_api::inputGroupCall>(group_call_id_, access_hash_);
}
StringBuilder &operator<<(StringBuilder &string_builder, InputGroupCallId input_group_call_id) {
- return string_builder << "input group call " << input_group_call_id.group_call_id;
+ return string_builder << "input group call " << input_group_call_id.group_call_id_;
}
} // namespace td
diff --git a/td/telegram/InputGroupCallId.h b/td/telegram/InputGroupCallId.h
index 028f55b5c..95d23ae8a 100644
--- a/td/telegram/InputGroupCallId.h
+++ b/td/telegram/InputGroupCallId.h
@@ -15,19 +15,19 @@
namespace td {
class InputGroupCallId {
- int64 group_call_id = 0;
- int64 access_hash = 0;
+ int64 group_call_id_ = 0;
+ int64 access_hash_ = 0;
public:
InputGroupCallId() = default;
explicit InputGroupCallId(const telegram_api::object_ptr<telegram_api::InputGroupCall> &input_group_call);
- InputGroupCallId(int64 group_call_id, int64 access_hash) : group_call_id(group_call_id), access_hash(access_hash) {
+ InputGroupCallId(int64 group_call_id, int64 access_hash) : group_call_id_(group_call_id), access_hash_(access_hash) {
}
bool operator==(const InputGroupCallId &other) const {
- return group_call_id == other.group_call_id;
+ return group_call_id_ == other.group_call_id_;
}
bool operator!=(const InputGroupCallId &other) const {
@@ -35,33 +35,33 @@ class InputGroupCallId {
}
bool is_identical(const InputGroupCallId &other) const {
- return group_call_id == other.group_call_id && access_hash == other.access_hash;
+ return group_call_id_ == other.group_call_id_ && access_hash_ == other.access_hash_;
}
bool is_valid() const {
- return group_call_id != 0;
+ return group_call_id_ != 0;
}
uint32 get_hash() const {
- return Hash<int64>()(group_call_id);
+ return Hash<int64>()(group_call_id_);
}
int64 get_group_call_id() const {
- return group_call_id;
+ return group_call_id_;
}
telegram_api::object_ptr<telegram_api::inputGroupCall> get_input_group_call() const;
template <class StorerT>
void store(StorerT &storer) const {
- storer.store_long(group_call_id);
- storer.store_long(access_hash);
+ storer.store_long(group_call_id_);
+ storer.store_long(access_hash_);
}
template <class ParserT>
void parse(ParserT &parser) {
- group_call_id = parser.fetch_long();
- access_hash = parser.fetch_long();
+ group_call_id_ = parser.fetch_long();
+ access_hash_ = parser.fetch_long();
}
friend StringBuilder &operator<<(StringBuilder &string_builder, InputGroupCallId input_group_call_id);