2019-05-16 15:56:20 +02:00
|
|
|
package com.eu.habbo.habbohotel.items;
|
|
|
|
|
|
|
|
public enum RedeemableSubscriptionType {
|
|
|
|
HABBO_CLUB("hc"),
|
|
|
|
BUILDERS_CLUB("bc");
|
|
|
|
|
|
|
|
public final String subscriptionType;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
RedeemableSubscriptionType(String subscriptionType) {
|
2019-05-16 15:56:20 +02:00
|
|
|
this.subscriptionType = subscriptionType;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static RedeemableSubscriptionType fromString(String subscriptionType) {
|
2019-05-16 20:01:11 +02:00
|
|
|
if (subscriptionType == null) return null;
|
|
|
|
|
2019-05-16 15:56:20 +02:00
|
|
|
switch (subscriptionType) {
|
|
|
|
case "hc":
|
|
|
|
return HABBO_CLUB;
|
|
|
|
case "bc":
|
|
|
|
return BUILDERS_CLUB;
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|