mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Improved naming of classes for channel earn.
This commit is contained in:
parent
c5ba0fa705
commit
b5d5ff3cbb
3 changed files with 8 additions and 8 deletions
|
@ -747,11 +747,11 @@ Data::BoostStatus Boosts::boostStatus() const {
|
||||||
return _boostStatus;
|
return _boostStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
EarnStatistics::EarnStatistics(not_null<ChannelData*> channel)
|
ChannelEarnStatistics::ChannelEarnStatistics(not_null<ChannelData*> channel)
|
||||||
: StatisticsRequestSender(channel) {
|
: StatisticsRequestSender(channel) {
|
||||||
}
|
}
|
||||||
|
|
||||||
rpl::producer<rpl::no_value, QString> EarnStatistics::request() {
|
rpl::producer<rpl::no_value, QString> ChannelEarnStatistics::request() {
|
||||||
return [=](auto consumer) {
|
return [=](auto consumer) {
|
||||||
auto lifetime = rpl::lifetime();
|
auto lifetime = rpl::lifetime();
|
||||||
|
|
||||||
|
@ -795,7 +795,7 @@ rpl::producer<rpl::no_value, QString> EarnStatistics::request() {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
void EarnStatistics::requestHistory(
|
void ChannelEarnStatistics::requestHistory(
|
||||||
const Data::EarnHistorySlice::OffsetToken &token,
|
const Data::EarnHistorySlice::OffsetToken &token,
|
||||||
Fn<void(Data::EarnHistorySlice)> done) {
|
Fn<void(Data::EarnHistorySlice)> done) {
|
||||||
if (_requestId) {
|
if (_requestId) {
|
||||||
|
@ -865,7 +865,7 @@ void EarnStatistics::requestHistory(
|
||||||
}).send();
|
}).send();
|
||||||
}
|
}
|
||||||
|
|
||||||
Data::EarnStatistics EarnStatistics::data() const {
|
Data::EarnStatistics ChannelEarnStatistics::data() const {
|
||||||
return _data;
|
return _data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,9 +108,9 @@ private:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class EarnStatistics final : public StatisticsRequestSender {
|
class ChannelEarnStatistics final : public StatisticsRequestSender {
|
||||||
public:
|
public:
|
||||||
explicit EarnStatistics(not_null<ChannelData*> channel);
|
explicit ChannelEarnStatistics(not_null<ChannelData*> channel);
|
||||||
|
|
||||||
[[nodiscard]] rpl::producer<rpl::no_value, QString> request();
|
[[nodiscard]] rpl::producer<rpl::no_value, QString> request();
|
||||||
void requestHistory(
|
void requestHistory(
|
||||||
|
|
|
@ -256,7 +256,7 @@ InnerWidget::InnerWidget(
|
||||||
}
|
}
|
||||||
|
|
||||||
void InnerWidget::load() {
|
void InnerWidget::load() {
|
||||||
const auto api = lifetime().make_state<Api::EarnStatistics>(
|
const auto api = lifetime().make_state<Api::ChannelEarnStatistics>(
|
||||||
_peer->asChannel());
|
_peer->asChannel());
|
||||||
|
|
||||||
Info::Statistics::FillLoading(
|
Info::Statistics::FillLoading(
|
||||||
|
@ -996,7 +996,7 @@ void InnerWidget::fill() {
|
||||||
ShowMoreState(not_null<ChannelData*> channel)
|
ShowMoreState(not_null<ChannelData*> channel)
|
||||||
: api(channel) {
|
: api(channel) {
|
||||||
}
|
}
|
||||||
Api::EarnStatistics api;
|
Api::ChannelEarnStatistics api;
|
||||||
bool loading = false;
|
bool loading = false;
|
||||||
Data::EarnHistorySlice::OffsetToken token;
|
Data::EarnHistorySlice::OffsetToken token;
|
||||||
rpl::variable<int> showed = 0;
|
rpl::variable<int> showed = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue