
org.gitlab4j.api.models.Note Maven / Gradle / Ivy
Go to download
GitLab4J-API (gitlab4j-api) provides a full featured Java client library for working with GitLab repositories and servers via the GitLab REST API.
package org.gitlab4j.api.models;
import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import org.gitlab4j.api.utils.JacksonJsonEnumHelper;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Note {
/** Enum to use for ordering the results. */
public static enum OrderBy {
CREATED_AT, UPDATED_AT;
private static JacksonJsonEnumHelper enumHelper = new JacksonJsonEnumHelper<>(OrderBy.class);
@JsonCreator
public static OrderBy forValue(String value) {
return enumHelper.forValue(value);
}
@JsonValue
public String toValue() {
return (enumHelper.toString(this));
}
@Override
public String toString() {
return (enumHelper.toString(this));
}
}
public static enum NoteableType {
COMMIT, ISSUE, MERGE_REQUEST, SNIPPET;
private static JacksonJsonEnumHelper enumHelper = new JacksonJsonEnumHelper<>(NoteableType.class, true, true);
@JsonCreator
public static NoteableType forValue(String value) {
return enumHelper.forValue(value);
}
@JsonValue
public String toValue() {
return (enumHelper.toString(this));
}
@Override
public String toString() {
return (enumHelper.toString(this));
}
}
private String attachment;
private Author author;
private String body;
private Date createdAt;
private Boolean downvote;
private Date expiresAt;
private String fileName;
private Integer id;
private Integer noteableId;
private NoteableType noteableType;
private Integer noteableIid;
private Boolean system;
private String title;
private String updatedAt;
private Boolean upvote;
public String getAttachment() {
return attachment;
}
public void setAttachment(String attachment) {
this.attachment = attachment;
}
public Author getAuthor() {
return author;
}
public void setAuthor(Author author) {
this.author = author;
}
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Boolean getDownvote() {
return downvote;
}
public void setDownvote(Boolean downvote) {
this.downvote = downvote;
}
public Date getExpiresAt() {
return expiresAt;
}
public void setExpiresAt(Date expiresAt) {
this.expiresAt = expiresAt;
}
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getNoteableId() {
return noteableId;
}
public void setNoteableId(Integer noteableId) {
this.noteableId = noteableId;
}
public NoteableType getNoteableType() {
return noteableType;
}
public void setNoteableType(NoteableType noteableType) {
this.noteableType = noteableType;
}
public Integer getNoteableIid() {
return noteableIid;
}
public void setNoteableIid(Integer noteableIid) {
this.noteableIid = noteableIid;
}
public Boolean getSystem() {
return system;
}
public void setSystem(Boolean system) {
this.system = system;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(String updatedAt) {
this.updatedAt = updatedAt;
}
public Boolean getUpvote() {
return upvote;
}
public void setUpvote(Boolean upvote) {
this.upvote = upvote;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy