142 lines
2.9 KiB
Java
142 lines
2.9 KiB
Java
/*
|
|
* Gitea API.
|
|
* This documentation describes the Gitea API.
|
|
*
|
|
* OpenAPI spec version: 1.15.0+dev-206-gae6d7860b
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
|
|
package io.gitea.model;
|
|
|
|
import java.util.Objects;
|
|
import java.util.Arrays;
|
|
import com.google.gson.TypeAdapter;
|
|
import com.google.gson.annotations.JsonAdapter;
|
|
import com.google.gson.annotations.SerializedName;
|
|
import com.google.gson.stream.JsonReader;
|
|
import com.google.gson.stream.JsonWriter;
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import java.io.IOException;
|
|
import org.threeten.bp.OffsetDateTime;
|
|
|
|
/**
|
|
* CommitMeta
|
|
*/
|
|
|
|
public class CommitMeta {
|
|
@SerializedName("created")
|
|
private OffsetDateTime created = null;
|
|
|
|
@SerializedName("sha")
|
|
private String sha = null;
|
|
|
|
@SerializedName("url")
|
|
private String url = null;
|
|
|
|
public CommitMeta created(OffsetDateTime created) {
|
|
this.created = created;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get created
|
|
* @return created
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public OffsetDateTime getCreated() {
|
|
return created;
|
|
}
|
|
|
|
public void setCreated(OffsetDateTime created) {
|
|
this.created = created;
|
|
}
|
|
|
|
public CommitMeta sha(String sha) {
|
|
this.sha = sha;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get sha
|
|
* @return sha
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getSha() {
|
|
return sha;
|
|
}
|
|
|
|
public void setSha(String sha) {
|
|
this.sha = sha;
|
|
}
|
|
|
|
public CommitMeta url(String url) {
|
|
this.url = url;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get url
|
|
* @return url
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getUrl() {
|
|
return url;
|
|
}
|
|
|
|
public void setUrl(String url) {
|
|
this.url = url;
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean equals(java.lang.Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
CommitMeta commitMeta = (CommitMeta) o;
|
|
return Objects.equals(this.created, commitMeta.created) &&
|
|
Objects.equals(this.sha, commitMeta.sha) &&
|
|
Objects.equals(this.url, commitMeta.url);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(created, sha, url);
|
|
}
|
|
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class CommitMeta {\n");
|
|
|
|
sb.append(" created: ").append(toIndentedString(created)).append("\n");
|
|
sb.append(" sha: ").append(toIndentedString(sha)).append("\n");
|
|
sb.append(" url: ").append(toIndentedString(url)).append("\n");
|
|
sb.append("}");
|
|
return sb.toString();
|
|
}
|
|
|
|
/**
|
|
* Convert the given object to string with each line indented by 4 spaces
|
|
* (except the first line).
|
|
*/
|
|
private String toIndentedString(java.lang.Object o) {
|
|
if (o == null) {
|
|
return "null";
|
|
}
|
|
return o.toString().replace("\n", "\n ");
|
|
}
|
|
|
|
}
|
|
|