mirror of
https://github.com/achiez/NebulaAuth-Steam-Desktop-Authenticator-by-Achies.git
synced 2026-07-25 06:14:31 +00:00
8ff960189e
- Update: Added "Copy Password" to Mafile context menu (if available) - Update: "Save Password" now pre-fills the current password in the "Login Again" dialog when encryption is enabled - Fix: Prevented overlapping confirmation cycles in AutoConfirmer - Fix: Added a Snackbar notification when a confirmation cycle is skipped due to a too frequent timer interval - Fix: Fixed a rare bug where the previous proxy was used instead of the current one during session refresh - Fix: Corrected "Session Permanently Expired" message showing on unrelated errors (e.g. network issues) - UI-Fix: Fixed visual glitch where proxy input appeared non-empty when switching to a mafile-specific proxy - Cleanup: Refactored and cleaned up codebase, improved styling and formatting via ReSharper
103 lines
2.2 KiB
C#
103 lines
2.2 KiB
C#
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SteamLib.Core.Enums;
|
|
|
|
public enum Currency
|
|
{
|
|
None = 0,
|
|
USD = 1,
|
|
GBP = 2,
|
|
EUR = 3,
|
|
CHF = 4,
|
|
RUB = 5,
|
|
PLN = 6,
|
|
BRL = 7,
|
|
JPY = 8,
|
|
NOK = 9,
|
|
IDR = 10,
|
|
MYR = 11,
|
|
PHP = 12,
|
|
SGD = 13,
|
|
THB = 14,
|
|
VND = 15,
|
|
KRW = 16,
|
|
TRY = 17,
|
|
UAH = 18,
|
|
MXN = 19,
|
|
CAD = 20,
|
|
AUD = 21,
|
|
NZD = 22,
|
|
CNY = 23,
|
|
INR = 24,
|
|
CLP = 25,
|
|
PEN = 26,
|
|
COP = 27,
|
|
ZAR = 28,
|
|
HKD = 29,
|
|
TWD = 30,
|
|
SAR = 31,
|
|
AED = 32,
|
|
ARS = 34,
|
|
ILS = 35,
|
|
KZT = 37,
|
|
KWD = 38,
|
|
QAR = 39,
|
|
CRC = 40,
|
|
UYU = 41
|
|
}
|
|
|
|
public static class CurrencyInfo
|
|
{
|
|
public static IReadOnlyDictionary<Currency, string> CurrencySymbols { get; } = new Dictionary<Currency, string>
|
|
{
|
|
{Currency.USD, "$"},
|
|
{Currency.GBP, "£"},
|
|
{Currency.EUR, "€"},
|
|
{Currency.CHF, "CHF"},
|
|
{Currency.RUB, "pуб."},
|
|
{Currency.PLN, "zł"},
|
|
{Currency.BRL, "R$"},
|
|
{Currency.JPY, "¥"},
|
|
{Currency.NOK, "kr"},
|
|
{Currency.IDR, "Rp"},
|
|
{Currency.MYR, "RM"},
|
|
{Currency.PHP, "P"},
|
|
{Currency.SGD, "S$"},
|
|
{Currency.THB, "฿"},
|
|
{Currency.VND, "₫"},
|
|
{Currency.KRW, "₩"},
|
|
{Currency.TRY, "TL"},
|
|
{Currency.UAH, "₴"},
|
|
{Currency.MXN, "Mex$"},
|
|
{Currency.CAD, "CDN$"},
|
|
{Currency.AUD, "A$"},
|
|
{Currency.NZD, "NZ$"},
|
|
{Currency.CNY, "¥"},
|
|
{Currency.INR, "₹"},
|
|
{Currency.CLP, "CLP$"},
|
|
{Currency.PEN, "S/."},
|
|
{Currency.COP, "COL$"},
|
|
{Currency.ZAR, "R"},
|
|
{Currency.HKD, "HK$"},
|
|
{Currency.TWD, "NT$"},
|
|
{Currency.SAR, "SR"},
|
|
{Currency.AED, "AED"},
|
|
{Currency.ARS, "ARS$"},
|
|
{Currency.ILS, "₪"},
|
|
{Currency.KZT, "₸"},
|
|
{Currency.KWD, "KD"},
|
|
{Currency.QAR, "QR"},
|
|
{Currency.CRC, "₡"},
|
|
{Currency.UYU, "$U"}
|
|
};
|
|
|
|
public static int ToInt(this Currency currency)
|
|
{
|
|
return (int) currency;
|
|
}
|
|
|
|
public static string ToIntString(this Currency currency)
|
|
{
|
|
return currency.ToInt().ToString();
|
|
}
|
|
} |