2018-12-23 22:34:40 +01:00
|
|
|
//
|
2022-12-31 22:28:08 +01:00
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
|
2018-12-23 22:34:40 +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"
|
|
|
|
|
2019-02-12 21:48:16 +01:00
|
|
|
#include "td/utils/common.h"
|
2018-12-23 22:34:40 +01:00
|
|
|
#include "td/utils/StringBuilder.h"
|
|
|
|
|
|
|
|
namespace td {
|
|
|
|
|
|
|
|
enum class NotificationGroupType : int8 { Messages, Mentions, SecretChat, Calls };
|
|
|
|
|
2023-08-25 00:06:59 +02:00
|
|
|
bool is_database_notification_group_type(NotificationGroupType type);
|
2023-08-24 23:45:28 +02:00
|
|
|
|
2023-08-25 00:06:59 +02:00
|
|
|
bool is_partial_notification_group_type(NotificationGroupType type);
|
2023-08-24 23:45:28 +02:00
|
|
|
|
2023-08-25 00:06:59 +02:00
|
|
|
td_api::object_ptr<td_api::NotificationGroupType> get_notification_group_type_object(NotificationGroupType type);
|
2018-12-23 22:34:40 +01:00
|
|
|
|
2023-08-25 00:06:59 +02:00
|
|
|
NotificationGroupType get_notification_group_type(const td_api::object_ptr<td_api::NotificationGroupType> &type);
|
2018-12-23 22:34:40 +01:00
|
|
|
|
2023-08-25 00:06:59 +02:00
|
|
|
StringBuilder &operator<<(StringBuilder &string_builder, const NotificationGroupType &type);
|
2018-12-23 22:34:40 +01:00
|
|
|
|
|
|
|
} // namespace td
|