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

com.xeiam.xchange.mexbt.dto.account.MeXBTWithdrawRequest Maven / Gradle / Ivy

The newest version!
package com.xeiam.xchange.mexbt.dto.account;

import java.math.BigDecimal;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xeiam.xchange.mexbt.dto.BigDecimalAsStringSerializer;
import com.xeiam.xchange.mexbt.dto.MeXBTInsRequest;
import com.xeiam.xchange.mexbt.service.MeXBTDigest;

import si.mazi.rescu.SynchronizedValueFactory;

public class MeXBTWithdrawRequest extends MeXBTInsRequest {

  private final BigDecimal amount;
  private final String sendToAddress;

  public MeXBTWithdrawRequest(String apiKey, SynchronizedValueFactory nonceFactory, MeXBTDigest meXBTDigest, String ins, BigDecimal amount,
      String sendToAddress) {
    super(apiKey, nonceFactory, meXBTDigest, ins);
    this.amount = amount;
    this.sendToAddress = sendToAddress;
  }

  @JsonSerialize(using = BigDecimalAsStringSerializer.class)
  public BigDecimal getAmount() {
    return amount;
  }

  public String getSendToAddress() {
    return sendToAddress;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy