Added dummy API class for statistics.

This commit is contained in:
23rd 2023-04-26 23:05:12 +03:00 committed by John Preston
parent 10968d0da2
commit c45025c6e5
3 changed files with 58 additions and 0 deletions

View File

@ -152,6 +152,8 @@ PRIVATE
api/api_sensitive_content.h
api/api_single_message_search.cpp
api/api_single_message_search.h
api/api_statistics.cpp
api/api_statistics.h
api/api_text_entities.cpp
api/api_text_entities.h
api/api_toggling_media.cpp

View File

@ -0,0 +1,27 @@
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "api/api_statistics.h"
#include "apiwrap.h"
#include "data/data_peer.h"
#include "main/main_session.h"
namespace Api {
namespace {
} // namespace
Statistics::Statistics(not_null<ApiWrap*> api)
: _api(&api->instance()) {
}
rpl::producer<> Statistics::request(
not_null<PeerData*> peer) const {
return rpl::never<>();
}
} // namespace Api

View File

@ -0,0 +1,29 @@
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include "mtproto/sender.h"
class ApiWrap;
class PeerData;
namespace Api {
class Statistics final {
public:
explicit Statistics(not_null<ApiWrap*> api);
[[nodiscard]] rpl::producer<> request(
not_null<PeerData*> peer) const;
private:
MTP::Sender _api;
};
} // namespace Api