Class Amount
Inheritance
System.Object
Amount
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class Amount : object, ISerializedType
Constructors
|
Improve this Doc
View Source
Amount(Decimal, Currency, AccountId)
Declaration
public Amount(decimal value, Currency currency, AccountId issuer = null)
Parameters
|
Improve this Doc
View Source
Amount(String, Currency, AccountId)
Declaration
public Amount(string v = "0", Currency c = null, AccountId i = null)
Parameters
|
Improve this Doc
View Source
Amount(AmountValue, Currency, AccountId)
Declaration
public Amount(AmountValue value, Currency currency = null, AccountId issuer = null)
Parameters
Fields
|
Improve this Doc
View Source
Currency
Declaration
public readonly Currency Currency
Field Value
|
Improve this Doc
View Source
Issuer
Declaration
public readonly AccountId Issuer
Field Value
|
Improve this Doc
View Source
MaximumIouPrecision
Declaration
public const int MaximumIouPrecision = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Value
Declaration
Field Value
Methods
|
Improve this Doc
View Source
DecimalValue()
Declaration
public decimal DecimalValue()
Returns
Type |
Description |
System.Decimal |
|
|
Improve this Doc
View Source
FromJson(JToken)
Declaration
public static Amount FromJson(JToken token)
Parameters
Type |
Name |
Description |
JToken |
token |
|
Returns
|
Improve this Doc
View Source
FromParser(BinaryParser, Nullable<Int32>)
Declaration
public static Amount FromParser(BinaryParser parser, int? hint = null)
Parameters
Type |
Name |
Description |
BinaryParser |
parser |
|
System.Nullable<System.Int32> |
hint |
|
Returns
|
Improve this Doc
View Source
IsNative()
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
NewValue(Decimal)
Declaration
public Amount NewValue(decimal decimal)
Parameters
Type |
Name |
Description |
System.Decimal |
decimal |
|
Returns
|
Improve this Doc
View Source
ToBytes(IBytesSink)
Declaration
public void ToBytes(IBytesSink sink)
Parameters
|
Improve this Doc
View Source
ToJson()
Declaration
Returns
Operators
|
Improve this Doc
View Source
GreaterThan(Decimal, Amount)
Declaration
public static bool operator>(decimal a, Amount b)
Parameters
Type |
Name |
Description |
System.Decimal |
a |
|
Amount |
b |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Implicit(String to Amount)
Declaration
public static implicit operator Amount(string v)
Parameters
Type |
Name |
Description |
System.String |
v |
|
Returns
|
Improve this Doc
View Source
Implicit(UInt64 to Amount)
Declaration
public static implicit operator Amount(ulong a)
Parameters
Type |
Name |
Description |
System.UInt64 |
a |
|
Returns
|
Improve this Doc
View Source
LessThan(Decimal, Amount)
Declaration
public static bool operator <(decimal a, Amount b)
Parameters
Type |
Name |
Description |
System.Decimal |
a |
|
Amount |
b |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Multiply(Amount, Decimal)
Declaration
public static Amount operator *(Amount a, decimal b)
Parameters
Type |
Name |
Description |
Amount |
a |
|
System.Decimal |
b |
|
Returns
Implements