mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Added initial data structure for credits giveaway options.
This commit is contained in:
parent
d81547f091
commit
f445440995
1 changed files with 18 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue