com.podio.common.Role Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
The official Java wrapper for the Podio API
package com.podio.common;
import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonValue;
public enum Role {
LIGHT,
REGULAR,
ADMIN;
@Override
@JsonValue
public String toString() {
return name().toLowerCase();
}
@JsonCreator
public static Role getByName(String value) {
return valueOf(value.toUpperCase());
}
}