tdlight/td/telegram/EmojiGroup.hpp

44 lines
1.1 KiB
C++
Raw Normal View History

2023-01-24 16:11:02 +01:00
//
2024-01-01 01:07:21 +01:00
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2024
2023-01-24 16:11:02 +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/EmojiGroup.h"
#include "td/utils/tl_helpers.h"
namespace td {
template <class StorerT>
void EmojiGroup::store(StorerT &storer) const {
td::store(title_, storer);
td::store(icon_custom_emoji_id_, storer);
td::store(emojis_, storer);
}
template <class ParserT>
void EmojiGroup::parse(ParserT &parser) {
td::parse(title_, parser);
td::parse(icon_custom_emoji_id_, parser);
td::parse(emojis_, parser);
}
template <class StorerT>
void EmojiGroupList::store(StorerT &storer) const {
td::store(used_language_codes_, storer);
td::store(hash_, storer);
td::store(emoji_groups_, storer);
}
template <class ParserT>
void EmojiGroupList::parse(ParserT &parser) {
td::parse(used_language_codes_, parser);
td::parse(hash_, parser);
td::parse(emoji_groups_, parser);
}
} // namespace td