210 lines
4.6 KiB
Java
210 lines
4.6 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;
|
|
|
|
/**
|
|
* User represents a user
|
|
*/
|
|
@ApiModel(description = "User represents a user")
|
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-20T18:39:27.321+01:00")
|
|
public class User {
|
|
@SerializedName("avatar_url")
|
|
private String avatarUrl = null;
|
|
|
|
@SerializedName("email")
|
|
private String email = null;
|
|
|
|
@SerializedName("full_name")
|
|
private String fullName = null;
|
|
|
|
@SerializedName("id")
|
|
private Long id = null;
|
|
|
|
@SerializedName("language")
|
|
private String language = null;
|
|
|
|
@SerializedName("login")
|
|
private String login = null;
|
|
|
|
public User avatarUrl(String avatarUrl) {
|
|
this.avatarUrl = avatarUrl;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* URL to the user's avatar
|
|
* @return avatarUrl
|
|
**/
|
|
@ApiModelProperty(value = "URL to the user's avatar")
|
|
public String getAvatarUrl() {
|
|
return avatarUrl;
|
|
}
|
|
|
|
public void setAvatarUrl(String avatarUrl) {
|
|
this.avatarUrl = avatarUrl;
|
|
}
|
|
|
|
public User 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 User fullName(String fullName) {
|
|
this.fullName = fullName;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* the user's full name
|
|
* @return fullName
|
|
**/
|
|
@ApiModelProperty(value = "the user's full name")
|
|
public String getFullName() {
|
|
return fullName;
|
|
}
|
|
|
|
public void setFullName(String fullName) {
|
|
this.fullName = fullName;
|
|
}
|
|
|
|
public User id(Long id) {
|
|
this.id = id;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* the user's id
|
|
* @return id
|
|
**/
|
|
@ApiModelProperty(value = "the user's id")
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public User language(String language) {
|
|
this.language = language;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* User locale
|
|
* @return language
|
|
**/
|
|
@ApiModelProperty(value = "User locale")
|
|
public String getLanguage() {
|
|
return language;
|
|
}
|
|
|
|
public void setLanguage(String language) {
|
|
this.language = language;
|
|
}
|
|
|
|
public User login(String login) {
|
|
this.login = login;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* the user's username
|
|
* @return login
|
|
**/
|
|
@ApiModelProperty(value = "the user's username")
|
|
public String getLogin() {
|
|
return login;
|
|
}
|
|
|
|
public void setLogin(String login) {
|
|
this.login = login;
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean equals(java.lang.Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
User user = (User) o;
|
|
return Objects.equals(this.avatarUrl, user.avatarUrl) &&
|
|
Objects.equals(this.email, user.email) &&
|
|
Objects.equals(this.fullName, user.fullName) &&
|
|
Objects.equals(this.id, user.id) &&
|
|
Objects.equals(this.language, user.language) &&
|
|
Objects.equals(this.login, user.login);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(avatarUrl, email, fullName, id, language, login);
|
|
}
|
|
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class User {\n");
|
|
|
|
sb.append(" avatarUrl: ").append(toIndentedString(avatarUrl)).append("\n");
|
|
sb.append(" email: ").append(toIndentedString(email)).append("\n");
|
|
sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n");
|
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
|
sb.append(" language: ").append(toIndentedString(language)).append("\n");
|
|
sb.append(" login: ").append(toIndentedString(login)).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 ");
|
|
}
|
|
|
|
}
|
|
|