package com.github.sullis.email.markup.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.Object; import java.lang.Override; import java.lang.String; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1-dev * User agent: apibuilder app.apibuilder.io/sullis/email-markup/0.0.1-dev/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 Place { private final Address address; private final String logo; private final String map; private final String telephone; @JsonCreator public Place(@JsonProperty("address") Address address, @JsonProperty("logo") String logo, @JsonProperty("map") String map, @JsonProperty("telephone") String telephone) { this.address = address; this.logo = logo; this.map = map; this.telephone = telephone; } public Address getAddress() { return address; } public String getLogo() { return logo; } public String getMap() { return map; } public String getTelephone() { return telephone; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Place that = (Place) o; if (address != null ? !address.equals(that.address) : that.address != null) return false; if (logo != null ? !logo.equals(that.logo) : that.logo != null) return false; if (map != null ? !map.equals(that.map) : that.map != null) return false; if (telephone != null ? !telephone.equals(that.telephone) : that.telephone != null) return false; return true; } @Override public int hashCode() { int result = 0; result = 31 * result + (address != null ? address.hashCode() : 0); result = 31 * result + (logo != null ? logo.hashCode() : 0); result = 31 * result + (map != null ? map.hashCode() : 0); result = 31 * result + (telephone != null ? telephone.hashCode() : 0); return result; } public String toJsonString() throws JsonProcessingException { return com.github.sullis.email.markup.v0.android.ApiBuilderObjectMapper.getInstance().writeValueAsString(this); } public static Place parseJson(String json) throws IOException { return com.github.sullis.email.markup.v0.android.ApiBuilderObjectMapper.getInstance().readValue( json, Place.class); } }