Package net.ognetwork.ogcore.api.models
Enum Party.ResultStatus
- All Implemented Interfaces:
Serializable
,Comparable<Party.ResultStatus>
,java.lang.constant.Constable
- Enclosing class:
- Party
The possible results of different actions performed by users.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that the inviteePlayer was already invited to the party.Indicates that the action cannot be performed since the acting user is the party leader.Indicates that the a player is already a member.Indicates that the actingPlayer did not have permission to perform the action.Indicates that the inviteePlayer has no invite to the current party.Indicates that everything worked correctly.Indicates that the party is full and has no free member slots available.Indicates that something unknown happened. -
Method Summary
Modifier and TypeMethodDescriptionstatic Party.ResultStatus
Returns the enum constant of this type with the specified name.static Party.ResultStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OK
Indicates that everything worked correctly. -
NO_PERMISSION
Indicates that the actingPlayer did not have permission to perform the action. -
PARTY_FULL
Indicates that the party is full and has no free member slots available. -
IS_LEADER
Indicates that the action cannot be performed since the acting user is the party leader. -
IS_MEMBER
Indicates that the a player is already a member. -
ALREADY_INVITED
Indicates that the inviteePlayer was already invited to the party. -
NOT_INVITED
Indicates that the inviteePlayer has no invite to the current party. -
UNKNOWN_FAIL
Indicates that something unknown happened.
-
-
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
-