258 lines
5.8 KiB
Java
258 lines
5.8 KiB
Java
/*
|
|
* Gitea API.
|
|
* This documentation describes the Gitea API.
|
|
*
|
|
* OpenAPI spec version: 1.1.1
|
|
*
|
|
*
|
|
* 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 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.gitea.model.User;
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import java.io.IOException;
|
|
import org.threeten.bp.OffsetDateTime;
|
|
|
|
/**
|
|
* Comment represents a comment on a commit or issue
|
|
*/
|
|
@ApiModel(description = "Comment represents a comment on a commit or issue")
|
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-24T18:24:48.590+01:00")
|
|
public class Comment {
|
|
@SerializedName("body")
|
|
private String body = null;
|
|
|
|
@SerializedName("created_at")
|
|
private OffsetDateTime createdAt = null;
|
|
|
|
@SerializedName("html_url")
|
|
private String htmlUrl = null;
|
|
|
|
@SerializedName("id")
|
|
private Long id = null;
|
|
|
|
@SerializedName("issue_url")
|
|
private String issueUrl = null;
|
|
|
|
@SerializedName("pull_request_url")
|
|
private String pullRequestUrl = null;
|
|
|
|
@SerializedName("updated_at")
|
|
private OffsetDateTime updatedAt = null;
|
|
|
|
@SerializedName("user")
|
|
private User user = null;
|
|
|
|
public Comment body(String body) {
|
|
this.body = body;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get body
|
|
* @return body
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getBody() {
|
|
return body;
|
|
}
|
|
|
|
public void setBody(String body) {
|
|
this.body = body;
|
|
}
|
|
|
|
public Comment createdAt(OffsetDateTime createdAt) {
|
|
this.createdAt = createdAt;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get createdAt
|
|
* @return createdAt
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public OffsetDateTime getCreatedAt() {
|
|
return createdAt;
|
|
}
|
|
|
|
public void setCreatedAt(OffsetDateTime createdAt) {
|
|
this.createdAt = createdAt;
|
|
}
|
|
|
|
public Comment htmlUrl(String htmlUrl) {
|
|
this.htmlUrl = htmlUrl;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get htmlUrl
|
|
* @return htmlUrl
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getHtmlUrl() {
|
|
return htmlUrl;
|
|
}
|
|
|
|
public void setHtmlUrl(String htmlUrl) {
|
|
this.htmlUrl = htmlUrl;
|
|
}
|
|
|
|
public Comment id(Long id) {
|
|
this.id = id;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get id
|
|
* @return id
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Comment issueUrl(String issueUrl) {
|
|
this.issueUrl = issueUrl;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get issueUrl
|
|
* @return issueUrl
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getIssueUrl() {
|
|
return issueUrl;
|
|
}
|
|
|
|
public void setIssueUrl(String issueUrl) {
|
|
this.issueUrl = issueUrl;
|
|
}
|
|
|
|
public Comment pullRequestUrl(String pullRequestUrl) {
|
|
this.pullRequestUrl = pullRequestUrl;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get pullRequestUrl
|
|
* @return pullRequestUrl
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getPullRequestUrl() {
|
|
return pullRequestUrl;
|
|
}
|
|
|
|
public void setPullRequestUrl(String pullRequestUrl) {
|
|
this.pullRequestUrl = pullRequestUrl;
|
|
}
|
|
|
|
public Comment updatedAt(OffsetDateTime updatedAt) {
|
|
this.updatedAt = updatedAt;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get updatedAt
|
|
* @return updatedAt
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public OffsetDateTime getUpdatedAt() {
|
|
return updatedAt;
|
|
}
|
|
|
|
public void setUpdatedAt(OffsetDateTime updatedAt) {
|
|
this.updatedAt = updatedAt;
|
|
}
|
|
|
|
public Comment user(User user) {
|
|
this.user = user;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get user
|
|
* @return user
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public User getUser() {
|
|
return user;
|
|
}
|
|
|
|
public void setUser(User user) {
|
|
this.user = user;
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean equals(java.lang.Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
Comment comment = (Comment) o;
|
|
return Objects.equals(this.body, comment.body) &&
|
|
Objects.equals(this.createdAt, comment.createdAt) &&
|
|
Objects.equals(this.htmlUrl, comment.htmlUrl) &&
|
|
Objects.equals(this.id, comment.id) &&
|
|
Objects.equals(this.issueUrl, comment.issueUrl) &&
|
|
Objects.equals(this.pullRequestUrl, comment.pullRequestUrl) &&
|
|
Objects.equals(this.updatedAt, comment.updatedAt) &&
|
|
Objects.equals(this.user, comment.user);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(body, createdAt, htmlUrl, id, issueUrl, pullRequestUrl, updatedAt, user);
|
|
}
|
|
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class Comment {\n");
|
|
|
|
sb.append(" body: ").append(toIndentedString(body)).append("\n");
|
|
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
|
sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n");
|
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
|
sb.append(" issueUrl: ").append(toIndentedString(issueUrl)).append("\n");
|
|
sb.append(" pullRequestUrl: ").append(toIndentedString(pullRequestUrl)).append("\n");
|
|
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
|
|
sb.append(" user: ").append(toIndentedString(user)).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 ");
|
|
}
|
|
|
|
}
|
|
|