package cl.monsoon.s1next.data.api.model.wrapper; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.base.Objects; import cl.monsoon.s1next.data.api.model.Result; import cl.monsoon.s1next.data.api.model.collection.Threads; @SuppressWarnings("UnusedDeclaration") @JsonIgnoreProperties(ignoreUnknown = true) public final class ThreadsWrapper { @JsonProperty("Variables") private Threads threads; @JsonProperty("Message") private Result result; public Threads getThreads() { return threads; } public void setThreads(Threads threads) { this.threads = threads; } public Result getResult() { return result; } public void setResult(Result result) { this.result = result; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ThreadsWrapper that = (ThreadsWrapper) o; return Objects.equal(threads, that.threads) && Objects.equal(result, that.result); } @Override public int hashCode() { return Objects.hashCode(threads, result); } }