Class GravatarProfilePayments

java.lang.Object
com.github.natche.gravatarjavaclient.profile.serialization.GravatarProfilePayments

public final class GravatarProfilePayments extends Object
Represents a user's payment options on a Gravatar profile.
  • Constructor Details

    • GravatarProfilePayments

      public GravatarProfilePayments(List<GravatarProfileUrl> links, List<GravatarCryptoWalletAddress> cryptoWallets)
      Constructs a new GravatarProfilePayments.
      Parameters:
      links - the list of external payment service links
      cryptoWallets - the list of cryptocurrency wallet addresses
      Throws:
      NullPointerException - if links or cryptoWallets is null
  • Method Details

    • getLinks

      public com.google.common.collect.ImmutableList<GravatarProfileUrl> getLinks()
      Returns the list of links to external payment services.
      Returns:
      the list of links to external payment services
    • getCryptoWallets

      public com.google.common.collect.ImmutableList<GravatarCryptoWalletAddress> getCryptoWallets()
      Returns the list of cryptocurrency wallet addresses.
      Returns:
      the list of cryptocurrency wallet addresses
    • equals

      public boolean equals(Object o)
      Returns whether the provided object is equal to this.
      Overrides:
      equals in class Object
      Parameters:
      o - the other object
      Returns:
      whether the provided object is equal to this
    • hashCode

      public int hashCode()
      Returns a hashcode for this object.
      Overrides:
      hashCode in class Object
      Returns:
      a hashcode for this object
    • toString

      public String toString()
      Returns a string representation of this object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of this object