Commit e29b3a30 authored by Tim Olshansky's avatar Tim Olshansky

Merge pull request #108 from pavelbely/master

Added Tag and Release models
parents dac8d3f3 c59a52f8
package org.gitlab.api.models;
import com.fasterxml.jackson.annotation.JsonProperty;
public class GitlabRelease {
@JsonProperty("tag_name")
private String tagName;
@JsonProperty("description")
private String description;
public String getTagName() {
return tagName;
}
public void setTagName(String tagName) {
this.tagName = tagName;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}
package org.gitlab.api.models;
import org.gitlab.api.models.GitlabBranchCommit;
import com.fasterxml.jackson.annotation.JsonProperty;
public class GitlabTag {
public final static String URL = "/repository/tags/";
@JsonProperty("commit")
private GitlabBranchCommit commit;
@JsonProperty("release")
private GitlabRelease release;
@JsonProperty("name")
private String name;
@JsonProperty("message")
private String message;
public GitlabBranchCommit getCommit() {
return commit;
}
public void setCommit(GitlabBranchCommit commit) {
this.commit = commit;
}
public GitlabRelease getRelease() {
return release;
}
public void setRelease(GitlabRelease release) {
this.release = release;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment