diff options
Diffstat (limited to 'protocols/Telegram/tdlib/td/td/telegram/GroupCallVideoPayload.h')
-rw-r--r-- | protocols/Telegram/tdlib/td/td/telegram/GroupCallVideoPayload.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/protocols/Telegram/tdlib/td/td/telegram/GroupCallVideoPayload.h b/protocols/Telegram/tdlib/td/td/telegram/GroupCallVideoPayload.h new file mode 100644 index 0000000000..e86f1073f7 --- /dev/null +++ b/protocols/Telegram/tdlib/td/td/telegram/GroupCallVideoPayload.h @@ -0,0 +1,40 @@ +// +// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022 +// +// 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" + +namespace td { + +class GroupCallVideoPayload { + struct GroupCallVideoSourceGroup { + string semantics_; + vector<int32> source_ids_; + }; + + vector<GroupCallVideoSourceGroup> source_groups_; + string endpoint_; + bool is_paused_ = false; + + friend bool operator==(const GroupCallVideoPayload &lhs, const GroupCallVideoPayload &rhs); + + public: + GroupCallVideoPayload() = default; + + explicit GroupCallVideoPayload(const telegram_api::groupCallParticipantVideo *video); + + bool is_empty() const; + + td_api::object_ptr<td_api::groupCallParticipantVideoInfo> get_group_call_participant_video_info_object() const; +}; + +bool operator==(const GroupCallVideoPayload &lhs, const GroupCallVideoPayload &rhs); + +} // namespace td |