jdash.common.PrivacySetting Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdash-common Show documentation
Show all versions of jdash-common Show documentation
Common types and utilities when dealing with Geometry Dash data
The newest version!
package jdash.common;
import jdash.common.internal.InternalUtils;
/**
* Privacy setting refers to the profile settings where a user can choose to restrict incoming private messages or
* visibility of comment history.
*/
public enum PrivacySetting {
/**
* Policy that grants access to all.
*/
ALL,
/**
* Policy that grants access to friends only.
*/
FRIENDS_ONLY,
/**
* Policy that grants access to nobody.
*/
NONE;
/**
* Convenience method to get a {@link PrivacySetting} based on the in-game encoding of an access policy.
*
* @param str the encoded string
* @return a {@link PrivacySetting}
*/
public static PrivacySetting parse(String str) {
return InternalUtils.parseIndex(str, PrivacySetting.values());
}
}