Class EmojiCustomFieldImpl

java.lang.Object
pw.chew.clickup4j.internal.entities.customfields.CustomFieldImpl
pw.chew.clickup4j.internal.entities.customfields.EmojiCustomFieldImpl
All Implemented Interfaces:
EmojiCustomField, ICustomField

public class EmojiCustomFieldImpl extends CustomFieldImpl implements EmojiCustomField
  • Constructor Details

    • EmojiCustomFieldImpl

      public EmojiCustomFieldImpl(org.json.JSONObject data, ClickUp4j api)
  • Method Details

    • getValue

      public 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 to TextCustomField, this class can be found using CustomFieldType.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 interface EmojiCustomField
      Specified by:
      getValue in interface ICustomField
      Overrides:
      getValue in class CustomFieldImpl
      Returns:
      the value of this custom field
    • getEmoji

      public String getEmoji()
      Description copied from interface: EmojiCustomField
      The emoji value associated with this custom field. E.g. 😎
      Specified by:
      getEmoji in interface EmojiCustomField
      Returns:
      a string value of the unicode representation of the emoji
    • getCount

      public int getCount()
      Description copied from interface: EmojiCustomField
      Gets the count for the rating used for this Emoji. Must be between 1-5.
      Specified by:
      getCount in interface EmojiCustomField
      Returns:
      an int value of 1-5