Interface EmojiCustomField
- All Superinterfaces:
ICustomField
- All Known Implementing Classes:
EmojiCustomFieldImpl
-
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
Gets the count for the rating used for this Emoji.getEmoji()
The emoji value associated with this custom field.default CustomFieldType
getType()
Returns the type of this custom field.getValue()
Returns the value of this custom field.Methods inherited from interface pw.chew.clickup4j.api.entities.customfields.ICustomField
getClickUp4j, getId, getName, getTimeCreated, isRequired
-
Method Details
-
getValue
Integer getValue()Description copied from interface:ICustomField
Returns the value of this custom field.It's highly recommended to cast this value to the appropriate type, because it returns more appropriate data. For example, if the custom field is of type
CustomFieldType.TEXT
, you can cast the value toTextCustomField
, this class can be found usingCustomFieldType.getAssociatedClass()
.This will be null under the following circumstances:
- No value is specified.
- The task response did not contain a
value
. Notably when an individual task is retrieved.
- Specified by:
getValue
in interfaceICustomField
- Returns:
- the value of this custom field
-
getEmoji
String getEmoji()The emoji value associated with this custom field. E.g. 😎- Returns:
- a string value of the unicode representation of the emoji
-
getCount
int getCount()Gets the count for the rating used for this Emoji. Must be between 1-5.- Returns:
- an int value of 1-5
-
getType
Description copied from interface:ICustomField
Returns the type of this custom field. This will be one ofCustomFieldType
.- Specified by:
getType
in interfaceICustomField
- Returns:
- the type of this custom field
-