Commit 97f648aa authored by Adam Retter's avatar Adam Retter

Extend enum use to Group and Project members

parent ef25978f
......@@ -9,12 +9,12 @@ public abstract class GitlabAbstractMember extends GitlabUser {
@JsonProperty("access_level")
private int _accessLevel;
public int getAccessLevel() {
return _accessLevel;
public GitlabAccessLevel getAccessLevel() {
return GitlabAccessLevel.fromAccessValue(_accessLevel);
}
public void setAccessLevel(int accessLevel) {
_accessLevel = accessLevel;
public void setAccessLevel(GitlabAccessLevel accessLevel) {
_accessLevel = accessLevel.accessValue;
}
}
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