
com.xeiam.xchange.kraken.dto.trade.results.KrakenCancelOrderResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-kraken Show documentation
Show all versions of xchange-kraken Show documentation
XChange implementation for the Kraken Exchange
package com.xeiam.xchange.kraken.dto.trade.results;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xeiam.xchange.kraken.dto.KrakenResult;
import com.xeiam.xchange.kraken.dto.trade.results.KrakenCancelOrderResult.KrakenCancelOrderResponse;
public class KrakenCancelOrderResult extends KrakenResult {
/**
* Constructor
*
* @param result
* @param error
*/
public KrakenCancelOrderResult(@JsonProperty("result") KrakenCancelOrderResponse result, @JsonProperty("error") String[] error) {
super(result, error);
}
public static class KrakenCancelOrderResponse {
private final int count;
private final boolean pending;
/**
* Constructor
*
* @param count
* @param pending
*/
public KrakenCancelOrderResponse(@JsonProperty("count") int count, @JsonProperty("pending") boolean pending) {
this.count = count;
this.pending = pending;
}
public int getCount() {
return count;
}
public boolean isPending() {
return pending;
}
@Override
public String toString() {
return "KrakenCancelOrderResponse [count=" + count + ", pending=" + pending + "]";
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy