Class PathHop
The object representation of a Hop, an issuer AccountID, an account AccountID, and a Currency
Inheritance
System.Object
PathHop
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class PathHop : object
Constructors
| Improve this Doc View SourcePathHop(AccountId, AccountId, Currency)
Create a Hop
Declaration
public PathHop(AccountId account, AccountId issuer, Currency currency)
Parameters
Type | Name | Description |
---|---|---|
AccountId | account | account AccountID |
AccountId | issuer | issuer AccountID |
Currency | currency | Currency |
Fields
| Improve this Doc View SourceAccount
account AccountID
Declaration
public readonly AccountId Account
Field Value
Type | Description |
---|---|
AccountId |
Currency
Currency
Declaration
public readonly Currency Currency
Field Value
Type | Description |
---|---|
Currency |
Issuer
issuer AccountID
Declaration
public readonly AccountId Issuer
Field Value
Type | Description |
---|---|
AccountId |
Type
Hop type
Declaration
public readonly int Type
Field Value
Type | Description |
---|---|
System.Int32 |
TypeAccount
TypeAccount const byte
Declaration
public const byte TypeAccount = null
Field Value
Type | Description |
---|---|
System.Byte |
TypeCurrency
TypeCurrency const byte
Declaration
public const byte TypeCurrency = null
Field Value
Type | Description |
---|---|
System.Byte |
TypeIssuer
type issuer const byte
Declaration
public const byte TypeIssuer = null
Field Value
Type | Description |
---|---|
System.Byte |
Methods
| Improve this Doc View SourceFromJson(JToken)
Deserialize Hot
Declaration
public static PathHop FromJson(JToken json)
Parameters
Type | Name | Description |
---|---|---|
JToken | json | json token |
Returns
Type | Description |
---|---|
PathHop |
HasAccount()
check that hop has account AccountID
Declaration
public bool HasAccount()
Returns
Type | Description |
---|---|
System.Boolean |
HasCurrency()
check that hop has currency
Declaration
public bool HasCurrency()
Returns
Type | Description |
---|---|
System.Boolean |
HasIssuer()
check that hop has issuer AccountID
Declaration
public bool HasIssuer()
Returns
Type | Description |
---|---|
System.Boolean |
SynthesizeType()
generate type for current hop
Declaration
public int SynthesizeType()
Returns
Type | Description |
---|---|
System.Int32 |
ToJson()
Serialize Hop
Declaration
public JObject ToJson()
Returns
Type | Description |
---|---|
JObject |