Commit 1d5d936c authored by Greg Messner's avatar Greg Messner
Browse files

Initial check-in.

parent 11c3abbb
package com.messners.gitlab.api.models;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public enum AccessLevel {
GUEST(10), REPORTER(20), DEVELOPER(30), MASTER(40), OWNER(50);
public final int value;
AccessLevel(int value) {
this.value = value;
}
private static Map<Integer, AccessLevel> valuesMap = new HashMap<Integer, AccessLevel>(5);
static {
for (AccessLevel accessLevel : AccessLevel.values())
valuesMap.put(accessLevel.value, accessLevel);
}
@JsonCreator
public static AccessLevel forValue(Integer value) {
return valuesMap.get(value);
}
@JsonValue
public Integer toValue() {
return (value);
}
}
package com.messners.gitlab.api.models;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Changes {
@JsonInclude(JsonInclude.Include.ALWAYS)
@JsonProperty("a_mode")
private String a_mode;
@JsonInclude(JsonInclude.Include.ALWAYS)
@JsonProperty("b_mode")
private String b_mode;
private Boolean deletedFile;
private String diff;
private Boolean newFile;
private String newPath;
private String oldPath;
private Boolean renamedFile;
@JsonInclude(JsonInclude.Include.ALWAYS)
@JsonProperty("a_mode")
public String getAMode() {
return a_mode;
}
public void setAMode(String a_mode) {
this.a_mode = a_mode;
}
@JsonInclude(JsonInclude.Include.ALWAYS)
@JsonProperty("b_mode")
public String getBMode() {
return b_mode;
}
public void setBMode(String b_mode) {
this.b_mode = b_mode;
}
public Boolean getDeletedFile() {
return deletedFile;
}
public void setDeletedFile(Boolean deletedFile) {
this.deletedFile = deletedFile;
}
public String getDiff() {
return diff;
}
public void setDiff(String diff) {
this.diff = diff;
}
public Boolean getNewFile() {
return newFile;
}
public void setNewFile(Boolean newFile) {
this.newFile = newFile;
}
public String getNewPath() {
return newPath;
}
public void setNewPath(String newPath) {
this.newPath = newPath;
}
public String getOldPath() {
return oldPath;
}
public void setOldPath(String oldPath) {
this.oldPath = oldPath;
}
public Boolean getRenamedFile() {
return renamedFile;
}
public void setRenamedFile(Boolean renamedFile) {
this.renamedFile = renamedFile;
}
}
package com.messners.gitlab.api.models;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlAccessorType(XmlAccessType.FIELD)
public class CommitStats {
private Integer additions;
private Integer deletions;
private Integer total;
public Integer getAdditions() {
return additions;
}
public void setAdditions(Integer additions) {
this.additions = additions;
}
public Integer getDeletions() {
return deletions;
}
public void setDeletions(Integer deletions) {
this.deletions = deletions;
}
public Integer getTotal() {
return total;
}
public void setTotal(Integer total) {
this.total = total;
}
}
package com.messners.gitlab.api.models;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class Committer extends AbstractUser {
}
package com.messners.gitlab.api.models;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlAccessorType(XmlAccessType.FIELD)
public class Identity {
private String provider;
private String externUid;
public String getProvider() {
return provider;
}
public void setProvider(String provider) {
this.provider = provider;
}
public String getExternUid() {
return externUid;
}
public void setExternUid(String externUid) {
this.externUid = externUid;
}
}
package com.messners.gitlab.api.models;
package com.messners.gitlab.api.models;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlRootElement @XmlAccessorType(XmlAccessType.FIELD)
@XmlAccessorType(XmlAccessType.FIELD) public class Permissions {
public class MergeRequestComment {
private ProjectAccess projectAccess;
private Author author; private ProjectAccess groupAccess;
private String note;
public ProjectAccess getProjectAccess() {
public Author getAuthor () { return projectAccess;
return this.author; }
}
public ProjectAccess getGroupAccess() {
public void setAuthor (Author author) { return groupAccess;
this.author = author; }
} }
public String getNote () {
return this.note;
}
public void setNote (String note) {
this.note = note;
}
}
package com.messners.gitlab.api.models;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlAccessorType (XmlAccessType.FIELD)
public class ProjectAccess {
private AccessLevel accessLevel;
private int notificationLevel;
public AccessLevel getAccessLevel() {
return (accessLevel);
}
public void setAccessLevel(AccessLevel accessLevel) {
this.accessLevel = accessLevel;
}
public int getNotificationLevel() {
return (notificationLevel);
}
public void setNotificationLevel(int notificationLevel) {
this.notificationLevel = notificationLevel;
}
}
package com.messners.gitlab.api.models;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlAccessorType(XmlAccessType.FIELD)
public class ProjectSharedGroup {
private Integer groupId;
private String groupName;
private AccessLevel groupAccessLevel;
public int getGroupId() {
return groupId;
}
public void setGroupId(int groupId) {
this.groupId = groupId;
}
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public AccessLevel getGroupAccessLevel() {
return (groupAccessLevel);
}
public void setGroupAccessLevel(AccessLevel accessLevel) {
this.groupAccessLevel = accessLevel;
}
}
package com.messners.gitlab.api.models; package com.messners.gitlab.api.models;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement @XmlRootElement
@XmlAccessorType (XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
public class Parent { public class Release {
private String id; private String tagName;
private String description;
public String getId () {
return this.id; public String getTagName() {
} return tagName;
}
public void setId (String id) {
this.id = id; public void setTagName(String tagName) {
} this.tagName = tagName;
} }
\ No newline at end of file
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}
package com.messners.gitlab.api.webhook;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlAccessorType(XmlAccessType.FIELD)
public class IssueEvent extends EventObject {
public static final String OBJECT_KIND = "issue";
private EventObjectAttributes objectAttributes;
public EventObjectAttributes getObjectAttributes() {
return this.objectAttributes;
}
public void setObjectAttributes(EventObjectAttributes objectAttributes) {
this.objectAttributes = objectAttributes;
}
}
package com.messners.gitlab.api.webhook;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlAccessorType(XmlAccessType.FIELD)
public class MergeRequestEvent extends EventObject {
public static final String OBJECT_KIND = "merge_request";
private EventObjectAttributes objectAttributes;
public EventObjectAttributes getObjectAttributes() {
return this.objectAttributes;
}
public void setObjectAttributes(EventObjectAttributes objectAttributes) {
this.objectAttributes = objectAttributes;
}
}
Supports Markdown
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