mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-05-12 02:44:05 +02:00
25 lines
630 B
C++
25 lines
630 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
|
|
|
|
#include "data/data_channel_earn.h"
|
|
|
|
namespace Info::ChannelEarn {
|
|
|
|
[[nodiscard]] QString MajorPart(Data::EarnInt value);
|
|
[[nodiscard]] QString MinorPart(Data::EarnInt value);
|
|
[[nodiscard]] QString ToUsd(
|
|
Data::EarnInt value,
|
|
float64 rate,
|
|
int afterFloat);
|
|
[[nodiscard]] QString ToUsd(
|
|
StarsAmount value,
|
|
float64 rate,
|
|
int afterFloat);
|
|
|
|
} // namespace Info::ChannelEarn
|