257 lines
5.9 KiB
Java
257 lines
5.9 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.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import java.io.IOException;
|
|
import org.threeten.bp.OffsetDateTime;
|
|
|
|
/**
|
|
* Milestone milestone is a collection of issues on one repository
|
|
*/
|
|
@ApiModel(description = "Milestone milestone is a collection of issues on one repository")
|
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-03T21:33:54.578+01:00")
|
|
public class Milestone {
|
|
@SerializedName("closed_at")
|
|
private OffsetDateTime closedAt = null;
|
|
|
|
@SerializedName("closed_issues")
|
|
private Long closedIssues = null;
|
|
|
|
@SerializedName("description")
|
|
private String description = null;
|
|
|
|
@SerializedName("due_on")
|
|
private OffsetDateTime dueOn = null;
|
|
|
|
@SerializedName("id")
|
|
private Long id = null;
|
|
|
|
@SerializedName("open_issues")
|
|
private Long openIssues = null;
|
|
|
|
@SerializedName("state")
|
|
private String state = null;
|
|
|
|
@SerializedName("title")
|
|
private String title = null;
|
|
|
|
public Milestone closedAt(OffsetDateTime closedAt) {
|
|
this.closedAt = closedAt;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get closedAt
|
|
* @return closedAt
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public OffsetDateTime getClosedAt() {
|
|
return closedAt;
|
|
}
|
|
|
|
public void setClosedAt(OffsetDateTime closedAt) {
|
|
this.closedAt = closedAt;
|
|
}
|
|
|
|
public Milestone closedIssues(Long closedIssues) {
|
|
this.closedIssues = closedIssues;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get closedIssues
|
|
* @return closedIssues
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public Long getClosedIssues() {
|
|
return closedIssues;
|
|
}
|
|
|
|
public void setClosedIssues(Long closedIssues) {
|
|
this.closedIssues = closedIssues;
|
|
}
|
|
|
|
public Milestone description(String description) {
|
|
this.description = description;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get description
|
|
* @return description
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public Milestone dueOn(OffsetDateTime dueOn) {
|
|
this.dueOn = dueOn;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get dueOn
|
|
* @return dueOn
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public OffsetDateTime getDueOn() {
|
|
return dueOn;
|
|
}
|
|
|
|
public void setDueOn(OffsetDateTime dueOn) {
|
|
this.dueOn = dueOn;
|
|
}
|
|
|
|
public Milestone 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 Milestone openIssues(Long openIssues) {
|
|
this.openIssues = openIssues;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get openIssues
|
|
* @return openIssues
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public Long getOpenIssues() {
|
|
return openIssues;
|
|
}
|
|
|
|
public void setOpenIssues(Long openIssues) {
|
|
this.openIssues = openIssues;
|
|
}
|
|
|
|
public Milestone state(String state) {
|
|
this.state = state;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get state
|
|
* @return state
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getState() {
|
|
return state;
|
|
}
|
|
|
|
public void setState(String state) {
|
|
this.state = state;
|
|
}
|
|
|
|
public Milestone title(String title) {
|
|
this.title = title;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get title
|
|
* @return title
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean equals(java.lang.Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
Milestone milestone = (Milestone) o;
|
|
return Objects.equals(this.closedAt, milestone.closedAt) &&
|
|
Objects.equals(this.closedIssues, milestone.closedIssues) &&
|
|
Objects.equals(this.description, milestone.description) &&
|
|
Objects.equals(this.dueOn, milestone.dueOn) &&
|
|
Objects.equals(this.id, milestone.id) &&
|
|
Objects.equals(this.openIssues, milestone.openIssues) &&
|
|
Objects.equals(this.state, milestone.state) &&
|
|
Objects.equals(this.title, milestone.title);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(closedAt, closedIssues, description, dueOn, id, openIssues, state, title);
|
|
}
|
|
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class Milestone {\n");
|
|
|
|
sb.append(" closedAt: ").append(toIndentedString(closedAt)).append("\n");
|
|
sb.append(" closedIssues: ").append(toIndentedString(closedIssues)).append("\n");
|
|
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
|
sb.append(" dueOn: ").append(toIndentedString(dueOn)).append("\n");
|
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
|
sb.append(" openIssues: ").append(toIndentedString(openIssues)).append("\n");
|
|
sb.append(" state: ").append(toIndentedString(state)).append("\n");
|
|
sb.append(" title: ").append(toIndentedString(title)).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 ");
|
|
}
|
|
|
|
}
|
|
|