mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
19 lines
439 B
C#
19 lines
439 B
C#
namespace Nadeko.Common;
|
|
|
|
public readonly struct ShmartBankAmount
|
|
{
|
|
public long Amount { get; }
|
|
public ShmartBankAmount(long amount)
|
|
{
|
|
Amount = amount;
|
|
}
|
|
|
|
public static implicit operator ShmartBankAmount(long num)
|
|
=> new(num);
|
|
|
|
public static implicit operator long(ShmartBankAmount num)
|
|
=> num.Amount;
|
|
|
|
public static implicit operator ShmartBankAmount(int num)
|
|
=> new(num);
|
|
} |