Class GcmConstants
java.lang.Object
org.apache.fineract.infrastructure.gcm.GcmConstants
Constants used on GCM service communication.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringicon for notification.static final StringA particular message could not be sent because the GCM servers encountered an error.static final StringA particular message could not be sent because the GCM servers were not available.static final StringJSON-only field representing the number of messages with a canonical registration id.static final StringJSON-only field representing the error field of an individual request.static final StringJSON-only field representing the number of failed messages.static final StringJSON-only field sent by GCM when a message was successfully sent.static final StringJSON-only field representing the id of the multicast request.static final StringJSON-only field representing the notification payload.static final StringJSON-only field representing the notification badge.static final StringJSON-only field representing the notification body.static final StringJSON-only field representing the notification body localization values.static final StringJSON-only field representing the notification body localization key.static final StringJSON-only field representing the notification click action.static final StringJSON-only field representing the notification color.static final StringJSON-only field representing the notification icon.static final StringJSON-only field representing the notification sound.static final StringJSON-only field representing the notification tag.static final StringJSON-only field representing the notification title.static final StringJSON-only field representing the notification title localization values.static final StringJSON-only field representing the notification title localization key.static final StringJSON-only field representing the payload data.static final StringJSON-only field representing the registration ids.static final StringJSON-only field representing the result of each individual request.static final StringJSON-only field representing the number of successful messages.static final StringJSON-only field representing the to recipient.static final StringValue used to set message priority to high.static final StringValue used to set message priority to normal.static final StringHTTP parameter for collapse key.static final StringParameter used to set the content available (iOS only)static final StringHTTP parameter for delaying the message delivery if the device is idle.static final StringHTTP parameter for telling gcm to validate the message without actually sending it.static final StringParameter used to set the message priority.static final StringHTTP parameter for package name that can be used to restrict message delivery by matching against the package name used to generate the registration id.static final StringParameter used to set the message time-to-live.static final StringParameter for to field.static final Integerstatic final StringTitle for notificationstatic final StringToken returned by GCM when the requested registration id has a canonical value.static final StringPrefix of the topic. -
Method Summary
-
Field Details
-
title
Title for notification- See Also:
-
defaultIcon
icon for notification.- See Also:
-
PARAM_TO
Parameter for to field.- See Also:
-
TOPIC_PREFIX
Prefix of the topic.- See Also:
-
PARAM_COLLAPSE_KEY
HTTP parameter for collapse key.- See Also:
-
PARAM_DELAY_WHILE_IDLE
HTTP parameter for delaying the message delivery if the device is idle.- See Also:
-
PARAM_DRY_RUN
HTTP parameter for telling gcm to validate the message without actually sending it.- See Also:
-
PARAM_RESTRICTED_PACKAGE_NAME
HTTP parameter for package name that can be used to restrict message delivery by matching against the package name used to generate the registration id.- See Also:
-
PARAM_TIME_TO_LIVE
Parameter used to set the message time-to-live.- See Also:
-
PARAM_PRIORITY
Parameter used to set the message priority.- See Also:
-
PARAM_CONTENT_AVAILABLE
Parameter used to set the content available (iOS only)- See Also:
-
MESSAGE_PRIORITY_NORMAL
Value used to set message priority to normal.- See Also:
-
MESSAGE_PRIORITY_HIGH
Value used to set message priority to high.- See Also:
-
ERROR_UNAVAILABLE
A particular message could not be sent because the GCM servers were not available. Used only on JSON requests, as in plain text requests unavailability is indicated by a 503 response.- See Also:
-
ERROR_INTERNAL_SERVER_ERROR
A particular message could not be sent because the GCM servers encountered an error. Used only on JSON requests, as in plain text requests internal errors are indicated by a 500 response.- See Also:
-
TOKEN_CANONICAL_REG_ID
Token returned by GCM when the requested registration id has a canonical value.- See Also:
-
JSON_REGISTRATION_IDS
JSON-only field representing the registration ids.- See Also:
-
JSON_TO
JSON-only field representing the to recipient.- See Also:
-
JSON_PAYLOAD
JSON-only field representing the payload data.- See Also:
-
JSON_NOTIFICATION
JSON-only field representing the notification payload.- See Also:
-
JSON_NOTIFICATION_TITLE
JSON-only field representing the notification title.- See Also:
-
JSON_NOTIFICATION_BODY
JSON-only field representing the notification body.- See Also:
-
JSON_NOTIFICATION_ICON
JSON-only field representing the notification icon.- See Also:
-
JSON_NOTIFICATION_SOUND
JSON-only field representing the notification sound.- See Also:
-
JSON_NOTIFICATION_BADGE
JSON-only field representing the notification badge.- See Also:
-
JSON_NOTIFICATION_TAG
JSON-only field representing the notification tag.- See Also:
-
JSON_NOTIFICATION_COLOR
JSON-only field representing the notification color.- See Also:
-
JSON_NOTIFICATION_CLICK_ACTION
JSON-only field representing the notification click action.- See Also:
-
JSON_NOTIFICATION_BODY_LOC_KEY
JSON-only field representing the notification body localization key.- See Also:
-
JSON_NOTIFICATION_BODY_LOC_ARGS
JSON-only field representing the notification body localization values.- See Also:
-
JSON_NOTIFICATION_TITLE_LOC_KEY
JSON-only field representing the notification title localization key.- See Also:
-
JSON_NOTIFICATION_TITLE_LOC_ARGS
JSON-only field representing the notification title localization values.- See Also:
-
JSON_SUCCESS
JSON-only field representing the number of successful messages.- See Also:
-
JSON_FAILURE
JSON-only field representing the number of failed messages.- See Also:
-
JSON_CANONICAL_IDS
JSON-only field representing the number of messages with a canonical registration id.- See Also:
-
JSON_MULTICAST_ID
JSON-only field representing the id of the multicast request.- See Also:
-
JSON_RESULTS
JSON-only field representing the result of each individual request.- See Also:
-
JSON_ERROR
JSON-only field representing the error field of an individual request.- See Also:
-
JSON_MESSAGE_ID
JSON-only field sent by GCM when a message was successfully sent.- See Also:
-
TIME_TO_LIVE
-