All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gitlab.api.models.GitlabAbstractMember Maven / Gradle / Ivy

The newest version!
package org.gitlab.api.models;

import com.fasterxml.jackson.annotation.JsonProperty;

public abstract class GitlabAbstractMember extends GitlabUser {

    public static final String URL = "/members";

    @JsonProperty("access_level")
    private int accessLevel;

    public GitlabAccessLevel getAccessLevel() {
        return GitlabAccessLevel.fromAccessValue(accessLevel);
    }

    public void setAccessLevel(GitlabAccessLevel accessLevel) {
        this.accessLevel = accessLevel.accessValue;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy