40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
//
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
|
|
//
|
|
// 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)
|
|
//
|
|
#include "td/telegram/StickerListType.h"
|
|
|
|
namespace td {
|
|
|
|
string get_sticker_list_type_database_key(StickerListType sticker_list_type) {
|
|
switch (sticker_list_type) {
|
|
case StickerListType::DialogPhoto:
|
|
return "default_dialog_photo_custom_emoji_ids";
|
|
case StickerListType::UserProfilePhoto:
|
|
return "default_profile_photo_custom_emoji_ids";
|
|
case StickerListType::Background:
|
|
return "default_background_custom_emoji_ids";
|
|
default:
|
|
UNREACHABLE();
|
|
return string();
|
|
}
|
|
}
|
|
|
|
StringBuilder &operator<<(StringBuilder &string_builder, StickerListType sticker_list_type) {
|
|
switch (sticker_list_type) {
|
|
case StickerListType::DialogPhoto:
|
|
return string_builder << "default chat photo custom emoji identifiers";
|
|
case StickerListType::UserProfilePhoto:
|
|
return string_builder << "default user profile photo custom emoji identifiers";
|
|
case StickerListType::Background:
|
|
return string_builder << "default background custom emoji identifiers";
|
|
default:
|
|
UNREACHABLE();
|
|
return string_builder;
|
|
}
|
|
}
|
|
|
|
} // namespace td
|