Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add position field to GitlabNote
  • Loading branch information
aonus committed Nov 16, 2020
commit 0a2acf1db3cf3b0057e02151b34a341c93f448ac
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.gitlab</groupId>
<artifactId>java-gitlab-api</artifactId>
<version>4.1.2-SNAPSHOT</version>
<version>4.1.3-SNAPSHOT</version>

<name>Gitlab Java API Wrapper</name>
<description>A Java wrapper for the Gitlab Git Hosting Server API</description>
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/org/gitlab/api/models/GitlabNote.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class GitlabNote {
private boolean system;
private boolean upvote;
private boolean downvote;
private GitlabNotePosition position;

@JsonProperty("created_at")
private Date createdAt;
Expand Down Expand Up @@ -82,4 +83,12 @@ public boolean isDownvote() {
public void setDownvote(boolean downvote) {
this.downvote = downvote;
}

public GitlabNotePosition getPosition() {
return position;
}

public void setPosition(final GitlabNotePosition position) {
this.position = position;
}
}
93 changes: 93 additions & 0 deletions src/main/java/org/gitlab/api/models/GitlabNotePosition.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
package org.gitlab.api.models;

import com.fasterxml.jackson.annotation.JsonProperty;

public class GitlabNotePosition {
@JsonProperty("base_sha")
private String baseSha;

@JsonProperty("start_sha")
private String startSha;

@JsonProperty("head_sha")
private String headSha;

@JsonProperty("old_path")
private String oldPath;

@JsonProperty("new_path")
private String newPath;

@JsonProperty("position_type")
private String positionType;

@JsonProperty("old_line")
private Integer oldLine;

@JsonProperty("new_line")
private Integer newLine;

public String getBaseSha() {
return baseSha;
}

public void setBaseSha(final String baseSha) {
this.baseSha = baseSha;
}

public String getStartSha() {
return startSha;
}

public void setStartSha(final String startSha) {
this.startSha = startSha;
}

public String getHeadSha() {
return headSha;
}

public void setHeadSha(final String headSha) {
this.headSha = headSha;
}

public String getOldPath() {
return oldPath;
}

public void setOldPath(final String oldPath) {
this.oldPath = oldPath;
}

public String getNewPath() {
return newPath;
}

public void setNewPath(final String newPath) {
this.newPath = newPath;
}

public String getPositionType() {
return positionType;
}

public void setPositionType(final String positionType) {
this.positionType = positionType;
}

public Integer getOldLine() {
return oldLine;
}

public void setOldLine(final Integer oldLine) {
this.oldLine = oldLine;
}

public Integer getNewLine() {
return newLine;
}

public void setNewLine(final Integer newLine) {
this.newLine = newLine;
}
}