mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-25 01:50:36 +00:00
Added initial data structure for credits giveaway options.
This commit is contained in:
parent
d81547f091
commit
f445440995
@ -80,4 +80,22 @@ struct CreditsStatusSlice final {
|
||||
OffsetToken tokenSubscriptions;
|
||||
};
|
||||
|
||||
struct CreditsGiveawayOption final {
|
||||
struct Winner final {
|
||||
int users = 0;
|
||||
uint64 perUserStars = 0;
|
||||
bool isDefault = false;
|
||||
};
|
||||
std::vector<Winner> winners;
|
||||
QString storeProduct;
|
||||
QString currency;
|
||||
uint64 amount = 0;
|
||||
uint64 credits = 0;
|
||||
int yearlyBoosts = 0;
|
||||
bool isExtended = false;
|
||||
bool isDefault = false;
|
||||
};
|
||||
|
||||
using CreditsGiveawayOptions = std::vector<CreditsGiveawayOption>;
|
||||
|
||||
} // namespace Data
|
||||
|
Loading…
Reference in New Issue
Block a user