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.Integer; import java.lang.Long; import java.lang.Object; import java.lang.Override; import java.lang.String; import org.joda.time.DateTime; /** * 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_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 and retrofit2 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 Epoch { private final Long outSum; private final Long fees; private final Integer txCount; private final Integer blkCount; private final Integer number; private final DateTime startTime; private final DateTime endTime; @JsonCreator public Epoch(@JsonProperty("out_sum") Long outSum, @JsonProperty("fees") Long fees, @JsonProperty("tx_count") Integer txCount, @JsonProperty("blk_count") Integer blkCount, @JsonProperty("number") Integer number, @JsonProperty("start_time") DateTime startTime, @JsonProperty("end_time") DateTime endTime) { this.outSum = outSum; this.fees = fees; this.txCount = txCount; this.blkCount = blkCount; this.number = number; this.startTime = startTime; this.endTime = endTime; } public Long getOutSum() { return outSum; } public Long getFees() { return fees; } public Integer getTxCount() { return txCount; } public Integer getBlkCount() { return blkCount; } public Integer getNumber() { return number; } public DateTime getStartTime() { return startTime; } public DateTime getEndTime() { return endTime; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Epoch that = (Epoch) o; if (outSum != null ? !outSum.equals(that.outSum) : that.outSum != null) return false; if (fees != null ? !fees.equals(that.fees) : that.fees != null) return false; if (txCount != null ? !txCount.equals(that.txCount) : that.txCount != null) return false; if (blkCount != null ? !blkCount.equals(that.blkCount) : that.blkCount != null) return false; if (number != null ? !number.equals(that.number) : that.number != null) return false; if (startTime != null ? !startTime.equals(that.startTime) : that.startTime != null) return false; if (endTime != null ? !endTime.equals(that.endTime) : that.endTime != null) return false; return true; } @Override public int hashCode() { int result = 0; result = 31 * result + (outSum != null ? outSum.hashCode() : 0); result = 31 * result + (fees != null ? fees.hashCode() : 0); result = 31 * result + (txCount != null ? txCount.hashCode() : 0); result = 31 * result + (blkCount != null ? blkCount.hashCode() : 0); result = 31 * result + (number != null ? number.hashCode() : 0); result = 31 * result + (startTime != null ? startTime.hashCode() : 0); result = 31 * result + (endTime != null ? endTime.hashCode() : 0); return result; } public String toJsonString() throws JsonProcessingException { return io.gimbalabs.hilltop.api.v0.android.ApiBuilderObjectMapper.getInstance().writeValueAsString(this); } public static Epoch parseJson(String json) throws IOException { return io.gimbalabs.hilltop.api.v0.android.ApiBuilderObjectMapper.getInstance().readValue( json, Epoch.class); } }