Show / Hide Table of Contents

Class PathHop

The object representation of a Hop, an issuer AccountID, an account AccountID, and a Currency

Inheritance
object
PathHop
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class PathHop

Constructors

| Edit this page View Source

PathHop(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

| Edit this page View Source

Account

account AccountID

Declaration
public readonly AccountId Account
Field Value
Type Description
AccountId
| Edit this page View Source

Currency

Currency

Declaration
public readonly Currency Currency
Field Value
Type Description
Currency
| Edit this page View Source

Issuer

issuer AccountID

Declaration
public readonly AccountId Issuer
Field Value
Type Description
AccountId
| Edit this page View Source

Type

Hop type

Declaration
public readonly int Type
Field Value
Type Description
int
| Edit this page View Source

TypeAccount

TypeAccount const byte

Declaration
public const byte TypeAccount = 1
Field Value
Type Description
byte
| Edit this page View Source

TypeCurrency

TypeCurrency const byte

Declaration
public const byte TypeCurrency = 16
Field Value
Type Description
byte
| Edit this page View Source

TypeIssuer

type issuer const byte

Declaration
public const byte TypeIssuer = 32
Field Value
Type Description
byte

Methods

| Edit this page View Source

FromJson(JsonNode)

Deserialize Hot

Declaration
public static PathHop FromJson(JsonNode json)
Parameters
Type Name Description
JsonNode json

json token

Returns
Type Description
PathHop
| Edit this page View Source

HasAccount()

check that hop has account AccountID

Declaration
public bool HasAccount()
Returns
Type Description
bool
| Edit this page View Source

HasCurrency()

check that hop has currency

Declaration
public bool HasCurrency()
Returns
Type Description
bool
| Edit this page View Source

HasIssuer()

check that hop has issuer AccountID

Declaration
public bool HasIssuer()
Returns
Type Description
bool
| Edit this page View Source

SynthesizeType()

generate type for current hop

Declaration
public int SynthesizeType()
Returns
Type Description
int
| Edit this page View Source

ToJson()

Serialize Hop

Declaration
public JsonObject ToJson()
Returns
Type Description
JsonObject
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX