Class FederationResponse

java.lang.Object
org.stellar.sdk.federation.FederationResponse

public final class FederationResponse extends Object
Object to hold a response from a federation server.
See Also:
  • Constructor Details

    • FederationResponse

      public FederationResponse(String stellarAddress, String accountId, String memoType, String memo)
      Creates a new FederationResponse instance.
      Parameters:
      stellarAddress - Stellar address (e.g. `bob*stellar.org`).
      accountId - Account ID (e.g. `GAVHK7L...`).
      memoType - Memo type or null when no memo attached
      memo - Memo value or null when no memo attached
  • Method Details

    • getStellarAddress

      public String getStellarAddress()
      Stellar address (e.g. `bob*stellar.org`).
    • getAccountId

      public String getAccountId()
      Account ID (e.g. `GAVHK7L...`).
    • getMemoType

      public String getMemoType()
      Memo type or null when no memo attached
    • getMemo

      public String getMemo()
      Memo value or null when no memo attached
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object