375 lines
8.1 KiB
Java
375 lines
8.1 KiB
Java
/*
|
|
* Gitea API
|
|
* This documentation describes the Gitea API.
|
|
*
|
|
* OpenAPI spec version: 1.21.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 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.Comment;
|
|
import io.gitea.model.Repository;
|
|
import io.gitea.model.User;
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import java.io.IOException;
|
|
import org.threeten.bp.OffsetDateTime;
|
|
|
|
/**
|
|
* Activity
|
|
*/
|
|
|
|
public class Activity {
|
|
@SerializedName("act_user")
|
|
private User actUser = null;
|
|
|
|
@SerializedName("act_user_id")
|
|
private Long actUserId = null;
|
|
|
|
@SerializedName("comment")
|
|
private Comment comment = null;
|
|
|
|
@SerializedName("comment_id")
|
|
private Long commentId = null;
|
|
|
|
@SerializedName("content")
|
|
private String content = null;
|
|
|
|
@SerializedName("created")
|
|
private OffsetDateTime created = null;
|
|
|
|
@SerializedName("id")
|
|
private Long id = null;
|
|
|
|
@SerializedName("is_private")
|
|
private Boolean isPrivate = null;
|
|
|
|
@SerializedName("op_type")
|
|
private String opType = null;
|
|
|
|
@SerializedName("ref_name")
|
|
private String refName = null;
|
|
|
|
@SerializedName("repo")
|
|
private Repository repo = null;
|
|
|
|
@SerializedName("repo_id")
|
|
private Long repoId = null;
|
|
|
|
@SerializedName("user_id")
|
|
private Long userId = null;
|
|
|
|
public Activity actUser(User actUser) {
|
|
this.actUser = actUser;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get actUser
|
|
* @return actUser
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public User getActUser() {
|
|
return actUser;
|
|
}
|
|
|
|
public void setActUser(User actUser) {
|
|
this.actUser = actUser;
|
|
}
|
|
|
|
public Activity actUserId(Long actUserId) {
|
|
this.actUserId = actUserId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get actUserId
|
|
* @return actUserId
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public Long getActUserId() {
|
|
return actUserId;
|
|
}
|
|
|
|
public void setActUserId(Long actUserId) {
|
|
this.actUserId = actUserId;
|
|
}
|
|
|
|
public Activity comment(Comment comment) {
|
|
this.comment = comment;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get comment
|
|
* @return comment
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public Comment getComment() {
|
|
return comment;
|
|
}
|
|
|
|
public void setComment(Comment comment) {
|
|
this.comment = comment;
|
|
}
|
|
|
|
public Activity commentId(Long commentId) {
|
|
this.commentId = commentId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get commentId
|
|
* @return commentId
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public Long getCommentId() {
|
|
return commentId;
|
|
}
|
|
|
|
public void setCommentId(Long commentId) {
|
|
this.commentId = commentId;
|
|
}
|
|
|
|
public Activity content(String content) {
|
|
this.content = content;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get content
|
|
* @return content
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getContent() {
|
|
return content;
|
|
}
|
|
|
|
public void setContent(String content) {
|
|
this.content = content;
|
|
}
|
|
|
|
public Activity created(OffsetDateTime created) {
|
|
this.created = created;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get created
|
|
* @return created
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public OffsetDateTime getCreated() {
|
|
return created;
|
|
}
|
|
|
|
public void setCreated(OffsetDateTime created) {
|
|
this.created = created;
|
|
}
|
|
|
|
public Activity 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 Activity isPrivate(Boolean isPrivate) {
|
|
this.isPrivate = isPrivate;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get isPrivate
|
|
* @return isPrivate
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public Boolean isIsPrivate() {
|
|
return isPrivate;
|
|
}
|
|
|
|
public void setIsPrivate(Boolean isPrivate) {
|
|
this.isPrivate = isPrivate;
|
|
}
|
|
|
|
public Activity opType(String opType) {
|
|
this.opType = opType;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get opType
|
|
* @return opType
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getOpType() {
|
|
return opType;
|
|
}
|
|
|
|
public void setOpType(String opType) {
|
|
this.opType = opType;
|
|
}
|
|
|
|
public Activity refName(String refName) {
|
|
this.refName = refName;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get refName
|
|
* @return refName
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public String getRefName() {
|
|
return refName;
|
|
}
|
|
|
|
public void setRefName(String refName) {
|
|
this.refName = refName;
|
|
}
|
|
|
|
public Activity repo(Repository repo) {
|
|
this.repo = repo;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get repo
|
|
* @return repo
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public Repository getRepo() {
|
|
return repo;
|
|
}
|
|
|
|
public void setRepo(Repository repo) {
|
|
this.repo = repo;
|
|
}
|
|
|
|
public Activity repoId(Long repoId) {
|
|
this.repoId = repoId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get repoId
|
|
* @return repoId
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public Long getRepoId() {
|
|
return repoId;
|
|
}
|
|
|
|
public void setRepoId(Long repoId) {
|
|
this.repoId = repoId;
|
|
}
|
|
|
|
public Activity userId(Long userId) {
|
|
this.userId = userId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get userId
|
|
* @return userId
|
|
**/
|
|
@ApiModelProperty(value = "")
|
|
public Long getUserId() {
|
|
return userId;
|
|
}
|
|
|
|
public void setUserId(Long userId) {
|
|
this.userId = userId;
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean equals(java.lang.Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
Activity activity = (Activity) o;
|
|
return Objects.equals(this.actUser, activity.actUser) &&
|
|
Objects.equals(this.actUserId, activity.actUserId) &&
|
|
Objects.equals(this.comment, activity.comment) &&
|
|
Objects.equals(this.commentId, activity.commentId) &&
|
|
Objects.equals(this.content, activity.content) &&
|
|
Objects.equals(this.created, activity.created) &&
|
|
Objects.equals(this.id, activity.id) &&
|
|
Objects.equals(this.isPrivate, activity.isPrivate) &&
|
|
Objects.equals(this.opType, activity.opType) &&
|
|
Objects.equals(this.refName, activity.refName) &&
|
|
Objects.equals(this.repo, activity.repo) &&
|
|
Objects.equals(this.repoId, activity.repoId) &&
|
|
Objects.equals(this.userId, activity.userId);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(actUser, actUserId, comment, commentId, content, created, id, isPrivate, opType, refName, repo, repoId, userId);
|
|
}
|
|
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class Activity {\n");
|
|
|
|
sb.append(" actUser: ").append(toIndentedString(actUser)).append("\n");
|
|
sb.append(" actUserId: ").append(toIndentedString(actUserId)).append("\n");
|
|
sb.append(" comment: ").append(toIndentedString(comment)).append("\n");
|
|
sb.append(" commentId: ").append(toIndentedString(commentId)).append("\n");
|
|
sb.append(" content: ").append(toIndentedString(content)).append("\n");
|
|
sb.append(" created: ").append(toIndentedString(created)).append("\n");
|
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
|
sb.append(" isPrivate: ").append(toIndentedString(isPrivate)).append("\n");
|
|
sb.append(" opType: ").append(toIndentedString(opType)).append("\n");
|
|
sb.append(" refName: ").append(toIndentedString(refName)).append("\n");
|
|
sb.append(" repo: ").append(toIndentedString(repo)).append("\n");
|
|
sb.append(" repoId: ").append(toIndentedString(repoId)).append("\n");
|
|
sb.append(" userId: ").append(toIndentedString(userId)).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 ");
|
|
}
|
|
|
|
}
|
|
|