package io.flow.github.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.Boolean; 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.5.18 * User agent: apibuilder app.apibuilder.io/flow/github/0.5.18/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 Repository { private final Long id; private final User owner; private final String name; private final String fullName; private final Boolean private_; private final String description; private final String url; private final String htmlUrl; private final String defaultBranch; @JsonCreator public Repository(@JsonProperty("id") Long id, @JsonProperty("owner") User owner, @JsonProperty("name") String name, @JsonProperty("full_name") String fullName, @JsonProperty("private") Boolean private_, @JsonProperty("description") String description, @JsonProperty("url") String url, @JsonProperty("html_url") String htmlUrl, @JsonProperty("default_branch") String defaultBranch) { this.id = id; this.owner = owner; this.name = name; this.fullName = fullName; this.private_ = private_; this.description = description; this.url = url; this.htmlUrl = htmlUrl; this.defaultBranch = defaultBranch; } public Long getId() { return id; } public User getOwner() { return owner; } public String getName() { return name; } public String getFullName() { return fullName; } public Boolean getPrivate() { return private_; } public String getDescription() { return description; } public String getUrl() { return url; } public String getHtmlUrl() { return htmlUrl; } public String getDefaultBranch() { return defaultBranch; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Repository that = (Repository) o; if (id != null ? !id.equals(that.id) : that.id != null) return false; if (owner != null ? !owner.equals(that.owner) : that.owner != null) return false; if (name != null ? !name.equals(that.name) : that.name != null) return false; if (fullName != null ? !fullName.equals(that.fullName) : that.fullName != null) return false; if (private_ != null ? !private_.equals(that.private_) : that.private_ != null) return false; if (description != null ? !description.equals(that.description) : that.description != null) return false; if (url != null ? !url.equals(that.url) : that.url != null) return false; if (htmlUrl != null ? !htmlUrl.equals(that.htmlUrl) : that.htmlUrl != null) return false; if (defaultBranch != null ? !defaultBranch.equals(that.defaultBranch) : that.defaultBranch != null) return false; return true; } @Override public int hashCode() { int result = 0; result = 31 * result + (id != null ? id.hashCode() : 0); result = 31 * result + (owner != null ? owner.hashCode() : 0); result = 31 * result + (name != null ? name.hashCode() : 0); result = 31 * result + (fullName != null ? fullName.hashCode() : 0); result = 31 * result + (private_ != null ? private_.hashCode() : 0); result = 31 * result + (description != null ? description.hashCode() : 0); result = 31 * result + (url != null ? url.hashCode() : 0); result = 31 * result + (htmlUrl != null ? htmlUrl.hashCode() : 0); result = 31 * result + (defaultBranch != null ? defaultBranch.hashCode() : 0); return result; } public String toJsonString() throws JsonProcessingException { return io.flow.github.v0.android.ApiBuilderObjectMapper.getInstance().writeValueAsString(this); } public static Repository parseJson(String json) throws IOException { return io.flow.github.v0.android.ApiBuilderObjectMapper.getInstance().readValue( json, Repository.class); } }