2021-01-12 15:05:25 +01:00
|
|
|
//
|
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2021
|
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
2021-05-03 15:30:14 +02:00
|
|
|
#include "td/telegram/td_api.h"
|
2021-06-01 17:52:58 +02:00
|
|
|
#include "td/telegram/telegram_api.h"
|
2021-05-03 15:30:14 +02:00
|
|
|
|
2021-01-12 15:05:25 +01:00
|
|
|
#include "td/utils/common.h"
|
|
|
|
|
|
|
|
namespace td {
|
|
|
|
|
2021-06-01 17:52:58 +02:00
|
|
|
struct GroupCallVideoSourceGroup {
|
|
|
|
string semantics;
|
|
|
|
vector<int32> source_ids;
|
|
|
|
};
|
|
|
|
|
2021-05-03 15:30:14 +02:00
|
|
|
struct GroupCallVideoPayload {
|
2021-06-01 17:52:58 +02:00
|
|
|
vector<GroupCallVideoSourceGroup> source_groups;
|
2021-05-03 15:30:14 +02:00
|
|
|
string endpoint;
|
2021-06-01 21:34:50 +02:00
|
|
|
bool is_paused = false;
|
2021-05-03 15:30:14 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
bool operator==(const GroupCallVideoPayload &lhs, const GroupCallVideoPayload &rhs);
|
|
|
|
|
|
|
|
td_api::object_ptr<td_api::groupCallParticipantVideoInfo> get_group_call_participant_video_info_object(
|
|
|
|
const GroupCallVideoPayload &payload);
|
|
|
|
|
2021-06-01 17:52:58 +02:00
|
|
|
GroupCallVideoPayload get_group_call_video_payload(const telegram_api::groupCallParticipantVideo *video);
|
2021-01-12 15:05:25 +01:00
|
|
|
|
|
|
|
} // namespace td
|