diff options
| author | levlam <levlam@telegram.org> | 2025-12-03 16:31:59 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2025-12-03 16:31:59 +0300 |
| commit | 1782a0a570562ad21400233bde0fcac64eb7709c (patch) | |
| tree | 0e7173447f4d07f9c67abbbf21b1d6276d088128 /td/telegram/StarGiftBackground.cpp | |
| parent | 617059b829f1347224d8bffbfd245513fc1c538b (diff) | |
Add td_api::giftBackground.
Diffstat (limited to 'td/telegram/StarGiftBackground.cpp')
| -rw-r--r-- | td/telegram/StarGiftBackground.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/td/telegram/StarGiftBackground.cpp b/td/telegram/StarGiftBackground.cpp new file mode 100644 index 000000000..58c072eaf --- /dev/null +++ b/td/telegram/StarGiftBackground.cpp @@ -0,0 +1,27 @@ +// +// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2025 +// +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// +#include "td/telegram/StarGiftBackground.h" + +#include "td/utils/logging.h" + +namespace td { + +td_api::object_ptr<td_api::giftBackground> StarGiftBackground::get_gift_background_object() const { + return td_api::make_object<td_api::giftBackground>(center_color_, edge_color_, text_color_); +} + +bool operator==(const StarGiftBackground &lhs, const StarGiftBackground &rhs) { + return lhs.center_color_ == rhs.center_color_ && lhs.edge_color_ == rhs.edge_color_ && + lhs.text_color_ == rhs.text_color_; +} + +StringBuilder &operator<<(StringBuilder &string_builder, const StarGiftBackground &background) { + return string_builder << "GiftBackground[" << background.center_color_ << '/' << background.edge_color_ << '/' + << background.text_color_ << ']'; +} + +} // namespace td |
