public enum InvitationResponse extends java.lang.Enum<InvitationResponse>
Enum Constant and Description |
---|
ACCEPT
Accept the invitation
|
EXPIRED
Invitation expired
|
REFUSE
Refuse the invitation
|
Modifier and Type | Method and Description |
---|---|
static InvitationResponse |
fromId(int id) |
int |
getId() |
static InvitationResponse |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InvitationResponse[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InvitationResponse ACCEPT
public static final InvitationResponse REFUSE
public static final InvitationResponse EXPIRED
public static InvitationResponse[] values()
for (InvitationResponse c : InvitationResponse.values()) System.out.println(c);
public static InvitationResponse valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getId()
public static InvitationResponse fromId(int id)