// // 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/BusinessAwayMessage.h" #include "td/telegram/BusinessGreetingMessage.h" #include "td/telegram/BusinessIntro.h" #include "td/telegram/BusinessWorkHours.h" #include "td/telegram/DialogLocation.h" #include "td/telegram/td_api.h" #include "td/utils/common.h" namespace td { class Td; class BusinessInfo { public: td_api::object_ptr get_business_info_object(Td *td) const; bool is_empty() const; static bool set_location(unique_ptr &business_info, DialogLocation &&location); static bool set_work_hours(unique_ptr &business_info, BusinessWorkHours &&work_hours); static bool set_away_message(unique_ptr &business_info, BusinessAwayMessage &&away_message); static bool set_greeting_message(unique_ptr &business_info, BusinessGreetingMessage &&greeting_message); static bool set_intro(unique_ptr &business_info, BusinessIntro &&intro); template void store(StorerT &storer) const; template void parse(ParserT &parser); private: static bool is_empty_location(const DialogLocation &location); DialogLocation location_; BusinessWorkHours work_hours_; BusinessAwayMessage away_message_; BusinessGreetingMessage greeting_message_; BusinessIntro intro_; }; } // namespace td