LUSID C# SDK
Public Member Functions | Properties | List of all members
Lusid.Sdk.Model.CurrencyAndAmount Class Reference

An amount of a specific currency, specifying a value and an associated unit More...

Inheritance diagram for Lusid.Sdk.Model.CurrencyAndAmount:
Inheritance graph
[legend]

Public Member Functions

 CurrencyAndAmount (decimal amount=default(decimal), string currency=default(string))
 Initializes a new instance of the CurrencyAndAmount class. More...
 
override string ToString ()
 Returns the string presentation of the object More...
 
virtual string ToJson ()
 Returns the JSON string presentation of the object More...
 
override bool Equals (object input)
 Returns true if objects are equal More...
 
bool Equals (CurrencyAndAmount input)
 Returns true if CurrencyAndAmount instances are equal More...
 
override int GetHashCode ()
 Gets the hash code More...
 

Properties

decimal Amount [get, set]
 Gets or Sets Amount More...
 
string Currency [get, set]
 Gets or Sets Currency More...
 

Detailed Description

An amount of a specific currency, specifying a value and an associated unit

Constructor & Destructor Documentation

◆ CurrencyAndAmount()

Lusid.Sdk.Model.CurrencyAndAmount.CurrencyAndAmount ( decimal  amount = default(decimal),
string  currency = default(string) 
)
inline

Initializes a new instance of the CurrencyAndAmount class.

Parameters
amountamount.
currencycurrency.

Member Function Documentation

◆ Equals() [1/2]

bool Lusid.Sdk.Model.CurrencyAndAmount.Equals ( CurrencyAndAmount  input)
inline

Returns true if CurrencyAndAmount instances are equal

Parameters
inputInstance of CurrencyAndAmount to be compared
Returns
Boolean

◆ Equals() [2/2]

override bool Lusid.Sdk.Model.CurrencyAndAmount.Equals ( object  input)
inline

Returns true if objects are equal

Parameters
inputObject to be compared
Returns
Boolean

◆ GetHashCode()

override int Lusid.Sdk.Model.CurrencyAndAmount.GetHashCode ( )
inline

Gets the hash code

Returns
Hash code

◆ ToJson()

virtual string Lusid.Sdk.Model.CurrencyAndAmount.ToJson ( )
inlinevirtual

Returns the JSON string presentation of the object

Returns
JSON string presentation of the object

◆ ToString()

override string Lusid.Sdk.Model.CurrencyAndAmount.ToString ( )
inline

Returns the string presentation of the object

Returns
String presentation of the object

Property Documentation

◆ Amount

decimal Lusid.Sdk.Model.CurrencyAndAmount.Amount
getset

Gets or Sets Amount

◆ Currency

string Lusid.Sdk.Model.CurrencyAndAmount.Currency
getset

Gets or Sets Currency


The documentation for this class was generated from the following file: