Package masecla.modrinth4j.model.team
Enum ModrinthPermissionMask.PermissionType
java.lang.Object
java.lang.Enum<ModrinthPermissionMask.PermissionType>
masecla.modrinth4j.model.team.ModrinthPermissionMask.PermissionType
- All Implemented Interfaces:
Serializable,Comparable<ModrinthPermissionMask.PermissionType>,java.lang.constant.Constable
- Enclosing class:
ModrinthPermissionMask
public static enum ModrinthPermissionMask.PermissionType
extends Enum<ModrinthPermissionMask.PermissionType>
Represents a permission type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhether the member can delete the projectWhether the member can delete versions from the projectWhether the member can edit the project bodyWhether the member can edit the project detailsWhether the member can edit other membersWhether the member can manage invitesWhether the member can remove other membersWhether the member can upload versions to the projectWhether the member can view analyticsWhether the member can view revenue -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UPLOAD_VERSION
Whether the member can upload versions to the project -
DELETE_VERSION
Whether the member can delete versions from the project -
EDIT_DETAILS
Whether the member can edit the project details -
EDIT_BODY
Whether the member can edit the project body -
MANAGE_INVITES
Whether the member can manage invites -
REMOVE_MEMBER
Whether the member can remove other members -
EDIT_MEMBER
Whether the member can edit other members -
DELETE_PROJECT
Whether the member can delete the project -
VIEW_ANALYTICS
Whether the member can view analytics -
VIEW_REVENUE
Whether the member can view revenue
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-