MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / FindStarsForResale

Function FindStarsForResale

Telegram/SourceFiles/api/api_premium.cpp:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67[[nodiscard]] int FindStarsForResale(const MTPVector<MTPStarsAmount> *list) {
68 if (!list) {
69 return 0;
70 }
71 for (const auto &amount : list->v) {
72 if (amount.type() == mtpc_starsAmount) {
73 return int(amount.c_starsAmount().vamount().v);
74 }
75 }
76 return 0;
77}
78
79[[nodiscard]] int64 FindTonForResale(const MTPVector<MTPStarsAmount> *list) {
80 if (!list) {

Callers 1

FromTLFunction · 0.85

Calls 1

typeMethod · 0.45

Tested by

no test coverage detected