Enum ProfileFieldType
- All Implemented Interfaces:
Serializable,Comparable<ProfileFieldType>
Defines the type of custom profile field.
See https://zulip.com/help/add-custom-profile-fields#profile-field-types
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionProfile field with a date picker.Profile field to for linking to GitHub, Twitter etc.Profile field for a web site hyperlink.Profile field with a list of options to choose from.Profile field for multiline responses.Profile field with a person picker.Profile field for pronouns.Profile field for one line responses limited to 50 characters.An unknown profile field type. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProfileFieldTypefromInt(int fieldType) intgetId()static ProfileFieldTypeReturns the enum constant of this type with the specified name.static ProfileFieldType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SHORT_TEXT
Profile field for one line responses limited to 50 characters. -
LONG_TEXT
Profile field for multiline responses. -
LIST_OF_OPTIONS
Profile field with a list of options to choose from. -
DATE_PICKER
Profile field with a date picker. -
LINK
Profile field for a web site hyperlink. -
PERSON_PICKER
Profile field with a person picker. -
EXTERNAL_ACCOUNT
Profile field to for linking to GitHub, Twitter etc. -
PRONOUNS
Profile field for pronouns. -
UNKNOWN
An unknown profile field type. This usually indicates an error in the response from Zulip.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public int getId() -
fromInt
-