129 lines
2.7 KiB
Java
129 lines
2.7 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.gitea.model.Team;
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import java.io.IOException;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* InlineResponse200
|
|
*/
|
|
|
|
public class InlineResponse200 {
|
|
@SerializedName("data")
|
|
private List<Team> data = null;
|
|
|
|
@SerializedName("ok")
|
|
private Boolean ok = null;
|
|
|
|
public InlineResponse200 data(List<Team> data) {
|
|
this.data = data;
|
|
return this;
|
|
}
|
|
|
|
public InlineResponse200 addDataItem(Team dataItem) {
|
|
if (this.data == null) {
|
|
this.data = new ArrayList<Team>();
|
|
}
|
|
this.data.add(dataItem);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get data
|
|
* @return data
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public List<Team> getData() {
|
|
return data;
|
|
}
|
|
|
|
public void setData(List<Team> data) {
|
|
this.data = data;
|
|
}
|
|
|
|
public InlineResponse200 ok(Boolean ok) {
|
|
this.ok = ok;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get ok
|
|
* @return ok
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public Boolean isOk() {
|
|
return ok;
|
|
}
|
|
|
|
public void setOk(Boolean ok) {
|
|
this.ok = ok;
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean equals(java.lang.Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
InlineResponse200 inlineResponse200 = (InlineResponse200) o;
|
|
return Objects.equals(this.data, inlineResponse200.data) &&
|
|
Objects.equals(this.ok, inlineResponse200.ok);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(data, ok);
|
|
}
|
|
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class InlineResponse200 {\n");
|
|
|
|
sb.append(" data: ").append(toIndentedString(data)).append("\n");
|
|
sb.append(" ok: ").append(toIndentedString(ok)).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 ");
|
|
}
|
|
|
|
}
|
|
|