java.lang.Object
org.kohsuke.github.GHMembership
Represents a membership of a user in an organization.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Role of a user in an organization.static enum
Whether a role is currently active or waiting for acceptance (pending). -
Constructor Summary
-
Method Summary
-
Constructor Details
-
GHMembership
public GHMembership()Create default GHMembership instance
-
-
Method Details
-
getUrl
Gets url.- Returns:
- the url
-
getState
Gets state.- Returns:
- the state
-
getRole
Gets role.- Returns:
- the role
-
getUser
Gets user.- Returns:
- the user
-
getOrganization
Gets organization.- Returns:
- the organization
-
activate
Accepts a pending invitation to an organization.- Throws:
IOException
- the io exception- See Also:
-