mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-05-10 09:53:57 +02:00
21 lines
440 B
C++
21 lines
440 B
C++
/*
|
|
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
|
|
|
|
namespace Data {
|
|
|
|
struct PeerSubscription final {
|
|
uint64 credits = 0;
|
|
int period = 0;
|
|
|
|
explicit operator bool() const {
|
|
return credits > 0 && period > 0;
|
|
}
|
|
};
|
|
|
|
} // namespace Data
|