141 lines
2.8 KiB
Java
141 lines
2.8 KiB
Java
/*
|
|
* Gitea API
|
|
* This documentation describes the Gitea API.
|
|
*
|
|
* OpenAPI spec version: 1.21.4
|
|
*
|
|
*
|
|
* 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;
|
|
|
|
/**
|
|
* CommitUser
|
|
*/
|
|
|
|
public class CommitUser {
|
|
@SerializedName("date")
|
|
private String date = null;
|
|
|
|
@SerializedName("email")
|
|
private String email = null;
|
|
|
|
@SerializedName("name")
|
|
private String name = null;
|
|
|
|
public CommitUser date(String date) {
|
|
this.date = date;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get date
|
|
* @return date
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getDate() {
|
|
return date;
|
|
}
|
|
|
|
public void setDate(String date) {
|
|
this.date = date;
|
|
}
|
|
|
|
public CommitUser email(String email) {
|
|
this.email = email;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get email
|
|
* @return email
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getEmail() {
|
|
return email;
|
|
}
|
|
|
|
public void setEmail(String email) {
|
|
this.email = email;
|
|
}
|
|
|
|
public CommitUser name(String name) {
|
|
this.name = name;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get name
|
|
* @return name
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean equals(java.lang.Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
CommitUser commitUser = (CommitUser) o;
|
|
return Objects.equals(this.date, commitUser.date) &&
|
|
Objects.equals(this.email, commitUser.email) &&
|
|
Objects.equals(this.name, commitUser.name);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(date, email, name);
|
|
}
|
|
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class CommitUser {\n");
|
|
|
|
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
|
sb.append(" email: ").append(toIndentedString(email)).append("\n");
|
|
sb.append(" name: ").append(toIndentedString(name)).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 ");
|
|
}
|
|
|
|
}
|
|
|