Enum Activity.Field
- All Implemented Interfaces:
Serializable,Comparable<Activity.Field>,java.lang.constant.Constable
- Enclosing interface:
Activity
The fields that represent the activity object in json form.
All of the fields that activities can have.
It is only OPTIONAL to set one of TITLE_ID or TITLE. In addition, if you are using any variables in your title or title template, you must set TEMPLATE_PARAMS.
Other possible fields to set are: URL, MEDIA_ITEMS, BODY_ID, BODY, EXTERNAL_ID, PRIORITY, STREAM_TITLE, STREAM_URL, STREAM_SOURCE_URL, and STREAM_FAVICON_URL.
Containers are only OPTIONAL to use TITLE_ID or TITLE, they may ignore additional parameters.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionthe json field for appId.the json field for body.the json field for bodyId.the json field for externalId.the json field for id.the json field for updated.the json field for mediaItems.the json field for postedTime.the json field for priority.the json field for streamFaviconUrl.the json field for streamSourceUrl.the json field for streamTitle.the json field for streamUrl.the json field for templateParams.the json field for title.the json field for titleId.the json field for url.the json field for userId. -
Method Summary
Modifier and TypeMethodDescriptiontoString()emit the field as a json element.static Activity.FieldReturns the enum constant of this type with the specified name.static Activity.Field[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
APP_ID
the json field for appId. -
BODY
the json field for body. -
BODY_ID
the json field for bodyId. -
EXTERNAL_ID
the json field for externalId. -
ID
the json field for id. -
LAST_UPDATED
the json field for updated. -
MEDIA_ITEMS
the json field for mediaItems. -
POSTED_TIME
the json field for postedTime. -
PRIORITY
the json field for priority. -
STREAM_FAVICON_URL
the json field for streamFaviconUrl. -
STREAM_SOURCE_URL
the json field for streamSourceUrl. -
STREAM_TITLE
the json field for streamTitle. -
STREAM_URL
the json field for streamUrl. -
TEMPLATE_PARAMS
the json field for templateParams. -
TITLE
the json field for title. -
TITLE_ID
the json field for titleId. -
URL
the json field for url. -
USER_ID
the json field for userId.
-
-
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
-
toString
emit the field as a json element.- Overrides:
toStringin classEnum<Activity.Field>- Returns:
- the field name
-