tdlight/td/telegram/GroupCallVideoPayload.h

41 lines
1.1 KiB
C
Raw Normal View History

2021-01-12 15:05:25 +01:00
//
2022-12-31 22:28:08 +01:00
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
2021-01-12 15:05:25 +01:00
//
// 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"
2021-06-01 17:52:58 +02:00
#include "td/telegram/telegram_api.h"
2021-01-12 15:05:25 +01:00
#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;
2021-06-01 17:52:58 +02:00
friend bool operator==(const GroupCallVideoPayload &lhs, const GroupCallVideoPayload &rhs);
2021-07-11 00:34:44 +02:00
public:
GroupCallVideoPayload() = default;
explicit GroupCallVideoPayload(const telegram_api::groupCallParticipantVideo *video);
2021-07-11 00:34:44 +02:00
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);
2021-01-12 15:05:25 +01:00
} // namespace td