mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-08-19 00:35:36 +02:00
34 lines
610 B
Java
34 lines
610 B
Java
package com.eu.habbo.habbohotel.guilds.forums;
|
|
|
|
public enum ForumThreadState {
|
|
OPEN(0),
|
|
CLOSED(1),
|
|
HIDDEN_BY_ADMIN(10),
|
|
HIDDEN_BY_STAFF(20);
|
|
|
|
private int stateId;
|
|
|
|
public int getStateId()
|
|
{
|
|
return this.stateId;
|
|
}
|
|
|
|
ForumThreadState(int stateId)
|
|
{
|
|
this.stateId = stateId;
|
|
}
|
|
|
|
public static ForumThreadState fromValue(int value)
|
|
{
|
|
for (ForumThreadState state : ForumThreadState.values())
|
|
{
|
|
if (state.stateId == value)
|
|
{
|
|
return state;
|
|
}
|
|
}
|
|
|
|
return CLOSED;
|
|
}
|
|
}
|