package io.gimbalabs.hilltop.api.v0.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.JsonProcessingException; import java.io.IOException; import java.lang.Double; import java.lang.Integer; import java.lang.Long; import java.lang.Object; import java.lang.Override; import java.lang.String; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1-SNAPSHOT * User agent: apibuilder app.apibuilder.io/gimbalabs/hilltop-api/0.0.1-SNAPSHOT/android_rx2_client * * WARNING: not all features (notably unions) and data types work with android generator yet. * Android generator is designed to be used in an android application, but should work in any java codebase as long as you import jackson, retrofit2 and RxJava2 libraries. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact android-feedback@gilt.com * */ @JsonIgnoreProperties( ignoreUnknown = true ) public class PoolUpdate { private final Integer epochNumber; private final Long blockNumber; private final String txHash; private final String poolTickerName; private final String poolBech32Id; private final Integer certificateIndex; private final String vrfKeyHash; private final Long pledge; private final String rewardAddress; private final Long activeEpochNumber; private final Double margin; private final Long fixedCost; @JsonCreator public PoolUpdate(@JsonProperty("epoch_number") Integer epochNumber, @JsonProperty("block_number") Long blockNumber, @JsonProperty("tx_hash") String txHash, @JsonProperty("pool_ticker_name") String poolTickerName, @JsonProperty("pool_bech32_id") String poolBech32Id, @JsonProperty("certificate_index") Integer certificateIndex, @JsonProperty("vrf_key_hash") String vrfKeyHash, @JsonProperty("pledge") Long pledge, @JsonProperty("reward_address") String rewardAddress, @JsonProperty("active_epoch_number") Long activeEpochNumber, @JsonProperty("margin") Double margin, @JsonProperty("fixed_cost") Long fixedCost) { this.epochNumber = epochNumber; this.blockNumber = blockNumber; this.txHash = txHash; this.poolTickerName = poolTickerName; this.poolBech32Id = poolBech32Id; this.certificateIndex = certificateIndex; this.vrfKeyHash = vrfKeyHash; this.pledge = pledge; this.rewardAddress = rewardAddress; this.activeEpochNumber = activeEpochNumber; this.margin = margin; this.fixedCost = fixedCost; } public Integer getEpochNumber() { return epochNumber; } public Long getBlockNumber() { return blockNumber; } public String getTxHash() { return txHash; } public String getPoolTickerName() { return poolTickerName; } public String getPoolBech32Id() { return poolBech32Id; } public Integer getCertificateIndex() { return certificateIndex; } public String getVrfKeyHash() { return vrfKeyHash; } public Long getPledge() { return pledge; } public String getRewardAddress() { return rewardAddress; } public Long getActiveEpochNumber() { return activeEpochNumber; } public Double getMargin() { return margin; } public Long getFixedCost() { return fixedCost; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; PoolUpdate that = (PoolUpdate) o; if (epochNumber != null ? !epochNumber.equals(that.epochNumber) : that.epochNumber != null) return false; if (blockNumber != null ? !blockNumber.equals(that.blockNumber) : that.blockNumber != null) return false; if (txHash != null ? !txHash.equals(that.txHash) : that.txHash != null) return false; if (poolTickerName != null ? !poolTickerName.equals(that.poolTickerName) : that.poolTickerName != null) return false; if (poolBech32Id != null ? !poolBech32Id.equals(that.poolBech32Id) : that.poolBech32Id != null) return false; if (certificateIndex != null ? !certificateIndex.equals(that.certificateIndex) : that.certificateIndex != null) return false; if (vrfKeyHash != null ? !vrfKeyHash.equals(that.vrfKeyHash) : that.vrfKeyHash != null) return false; if (pledge != null ? !pledge.equals(that.pledge) : that.pledge != null) return false; if (rewardAddress != null ? !rewardAddress.equals(that.rewardAddress) : that.rewardAddress != null) return false; if (activeEpochNumber != null ? !activeEpochNumber.equals(that.activeEpochNumber) : that.activeEpochNumber != null) return false; if (margin != null ? !margin.equals(that.margin) : that.margin != null) return false; if (fixedCost != null ? !fixedCost.equals(that.fixedCost) : that.fixedCost != null) return false; return true; } @Override public int hashCode() { int result = 0; result = 31 * result + (epochNumber != null ? epochNumber.hashCode() : 0); result = 31 * result + (blockNumber != null ? blockNumber.hashCode() : 0); result = 31 * result + (txHash != null ? txHash.hashCode() : 0); result = 31 * result + (poolTickerName != null ? poolTickerName.hashCode() : 0); result = 31 * result + (poolBech32Id != null ? poolBech32Id.hashCode() : 0); result = 31 * result + (certificateIndex != null ? certificateIndex.hashCode() : 0); result = 31 * result + (vrfKeyHash != null ? vrfKeyHash.hashCode() : 0); result = 31 * result + (pledge != null ? pledge.hashCode() : 0); result = 31 * result + (rewardAddress != null ? rewardAddress.hashCode() : 0); result = 31 * result + (activeEpochNumber != null ? activeEpochNumber.hashCode() : 0); result = 31 * result + (margin != null ? margin.hashCode() : 0); result = 31 * result + (fixedCost != null ? fixedCost.hashCode() : 0); return result; } public String toJsonString() throws JsonProcessingException { return io.gimbalabs.hilltop.api.v0.android.ApiBuilderObjectMapper.getInstance().writeValueAsString(this); } public static PoolUpdate parseJson(String json) throws IOException { return io.gimbalabs.hilltop.api.v0.android.ApiBuilderObjectMapper.getInstance().readValue( json, PoolUpdate.class); } }