package org.knowm.xchange.blockchain.dto;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author timmolter
*/
public final class Txs {
private final long blockHeight;
private final String hash;
private final List<Inputs> inputs;
private final List<Out> out;
private final String relayedBy;
private final long result;
private final long size;
private final long time;
private final long txIndex;
private final int ver;
private final int vinSz;
private final int voutSz;
/**
* Constructor
*
* @param block_height
* @param hash
* @param inputs
* @param out
* @param relayed_by
* @param result
* @param size
* @param time
* @param tx_index
* @param ver
* @param vin_sz
* @param vout_sz
*/
public Txs(@JsonProperty("block_height") long block_height, @JsonProperty("hash") String hash, @JsonProperty("inputs") List<Inputs> inputs,
@JsonProperty("out") List<Out> out, @JsonProperty("relayed_by") String relayed_by, @JsonProperty("result") long result,
@JsonProperty("size") long size, @JsonProperty("time") long time, @JsonProperty("tx_index") long tx_index, @JsonProperty("ver") int ver,
@JsonProperty("vin_sz") int vin_sz, @JsonProperty("vout_sz") int vout_sz) {
this.blockHeight = block_height;
this.hash = hash;
this.inputs = inputs;
this.out = out;
this.relayedBy = relayed_by;
this.result = result;
this.size = size;
this.time = time;
this.txIndex = tx_index;
this.ver = ver;
this.vinSz = vin_sz;
this.voutSz = vout_sz;
}
public long getBlockHeight() {
return this.blockHeight;
}
public String getHash() {
return this.hash;
}
public List<Inputs> getInputs() {
return this.inputs;
}
public List<Out> getOut() {
return this.out;
}
public String getRelayedBy() {
return this.relayedBy;
}
public long getResult() {
return this.result;
}
public long getSize() {
return this.size;
}
public long getTime() {
return this.time;
}
public long getTxIndex() {
return this.txIndex;
}
public int getVer() {
return this.ver;
}
public int getVinSz() {
return this.vinSz;
}
public int getVoutSz() {
return this.voutSz;
}
}