// // Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2024 // // 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) // #pragma once #include "td/telegram/td_api.h" #include "td/telegram/telegram_api.h" #include "td/utils/common.h" #include "td/utils/StringBuilder.h" namespace td { class ReactionNotificationsFrom { enum class Type : int32 { None, Contacts, All }; Type type_ = Type::Contacts; friend bool operator==(const ReactionNotificationsFrom &lhs, const ReactionNotificationsFrom &rhs); friend StringBuilder &operator<<(StringBuilder &string_builder, const ReactionNotificationsFrom ¬ifications_from); public: ReactionNotificationsFrom() = default; explicit ReactionNotificationsFrom(td_api::object_ptr &¬ification_source); explicit ReactionNotificationsFrom( telegram_api::object_ptr &¬ifications_from); td_api::object_ptr get_reaction_notification_source_object() const; telegram_api::object_ptr get_input_reaction_notifications_from() const; template void store(StorerT &storer) const; template void parse(ParserT &parser); }; bool operator==(const ReactionNotificationsFrom &lhs, const ReactionNotificationsFrom &rhs); inline bool operator!=(const ReactionNotificationsFrom &lhs, const ReactionNotificationsFrom &rhs) { return !(lhs == rhs); } StringBuilder &operator<<(StringBuilder &string_builder, const ReactionNotificationsFrom ¬ifications_from); } // namespace td