All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.knowm.xchange.coinbase.dto.account.CoinbaseContact Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version
package org.knowm.xchange.coinbase.dto.account;

import com.fasterxml.jackson.annotation.JsonProperty;

/** @author jamespedwards42 */
public class CoinbaseContact {

  private final CoinbaseContactEmail contact;

  public CoinbaseContact(@JsonProperty("contact") final CoinbaseContactEmail contact) {

    this.contact = contact;
  }

  public String getEmail() {

    return contact.email;
  }

  @Override
  public String toString() {

    return "CoinbaseContact [contact=" + contact + "]";
  }

  private static class CoinbaseContactEmail {

    private final String email;

    private CoinbaseContactEmail(@JsonProperty("email") final String email) {

      this.email = email;
    }

    @Override
    public String toString() {

      return "CoinbaseContactEmail [email=" + email + "]";
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy