Class GcmConstants

java.lang.Object
org.apache.fineract.infrastructure.gcm.GcmConstants

public final class GcmConstants extends Object
Constants used on GCM service communication.
  • Field Details

    • title

      public static final String title
      Title for notification
      See Also:
    • defaultIcon

      public static final String defaultIcon
      icon for notification.
      See Also:
    • PARAM_TO

      public static final String PARAM_TO
      Parameter for to field.
      See Also:
    • TOPIC_PREFIX

      public static final String TOPIC_PREFIX
      Prefix of the topic.
      See Also:
    • PARAM_COLLAPSE_KEY

      public static final String PARAM_COLLAPSE_KEY
      HTTP parameter for collapse key.
      See Also:
    • PARAM_DELAY_WHILE_IDLE

      public static final String PARAM_DELAY_WHILE_IDLE
      HTTP parameter for delaying the message delivery if the device is idle.
      See Also:
    • PARAM_DRY_RUN

      public static final String PARAM_DRY_RUN
      HTTP parameter for telling gcm to validate the message without actually sending it.
      See Also:
    • PARAM_RESTRICTED_PACKAGE_NAME

      public static final String 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

      public static final String PARAM_TIME_TO_LIVE
      Parameter used to set the message time-to-live.
      See Also:
    • PARAM_PRIORITY

      public static final String PARAM_PRIORITY
      Parameter used to set the message priority.
      See Also:
    • PARAM_CONTENT_AVAILABLE

      public static final String PARAM_CONTENT_AVAILABLE
      Parameter used to set the content available (iOS only)
      See Also:
    • MESSAGE_PRIORITY_NORMAL

      public static final String MESSAGE_PRIORITY_NORMAL
      Value used to set message priority to normal.
      See Also:
    • MESSAGE_PRIORITY_HIGH

      public static final String MESSAGE_PRIORITY_HIGH
      Value used to set message priority to high.
      See Also:
    • ERROR_UNAVAILABLE

      public static final String 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

      public static final String 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

      public static final String TOKEN_CANONICAL_REG_ID
      Token returned by GCM when the requested registration id has a canonical value.
      See Also:
    • JSON_REGISTRATION_IDS

      public static final String JSON_REGISTRATION_IDS
      JSON-only field representing the registration ids.
      See Also:
    • JSON_TO

      public static final String JSON_TO
      JSON-only field representing the to recipient.
      See Also:
    • JSON_PAYLOAD

      public static final String JSON_PAYLOAD
      JSON-only field representing the payload data.
      See Also:
    • JSON_NOTIFICATION

      public static final String JSON_NOTIFICATION
      JSON-only field representing the notification payload.
      See Also:
    • JSON_NOTIFICATION_TITLE

      public static final String JSON_NOTIFICATION_TITLE
      JSON-only field representing the notification title.
      See Also:
    • JSON_NOTIFICATION_BODY

      public static final String JSON_NOTIFICATION_BODY
      JSON-only field representing the notification body.
      See Also:
    • JSON_NOTIFICATION_ICON

      public static final String JSON_NOTIFICATION_ICON
      JSON-only field representing the notification icon.
      See Also:
    • JSON_NOTIFICATION_SOUND

      public static final String JSON_NOTIFICATION_SOUND
      JSON-only field representing the notification sound.
      See Also:
    • JSON_NOTIFICATION_BADGE

      public static final String JSON_NOTIFICATION_BADGE
      JSON-only field representing the notification badge.
      See Also:
    • JSON_NOTIFICATION_TAG

      public static final String JSON_NOTIFICATION_TAG
      JSON-only field representing the notification tag.
      See Also:
    • JSON_NOTIFICATION_COLOR

      public static final String JSON_NOTIFICATION_COLOR
      JSON-only field representing the notification color.
      See Also:
    • JSON_NOTIFICATION_CLICK_ACTION

      public static final String JSON_NOTIFICATION_CLICK_ACTION
      JSON-only field representing the notification click action.
      See Also:
    • JSON_NOTIFICATION_BODY_LOC_KEY

      public static final String JSON_NOTIFICATION_BODY_LOC_KEY
      JSON-only field representing the notification body localization key.
      See Also:
    • JSON_NOTIFICATION_BODY_LOC_ARGS

      public static final String JSON_NOTIFICATION_BODY_LOC_ARGS
      JSON-only field representing the notification body localization values.
      See Also:
    • JSON_NOTIFICATION_TITLE_LOC_KEY

      public static final String JSON_NOTIFICATION_TITLE_LOC_KEY
      JSON-only field representing the notification title localization key.
      See Also:
    • JSON_NOTIFICATION_TITLE_LOC_ARGS

      public static final String JSON_NOTIFICATION_TITLE_LOC_ARGS
      JSON-only field representing the notification title localization values.
      See Also:
    • JSON_SUCCESS

      public static final String JSON_SUCCESS
      JSON-only field representing the number of successful messages.
      See Also:
    • JSON_FAILURE

      public static final String JSON_FAILURE
      JSON-only field representing the number of failed messages.
      See Also:
    • JSON_CANONICAL_IDS

      public static final String JSON_CANONICAL_IDS
      JSON-only field representing the number of messages with a canonical registration id.
      See Also:
    • JSON_MULTICAST_ID

      public static final String JSON_MULTICAST_ID
      JSON-only field representing the id of the multicast request.
      See Also:
    • JSON_RESULTS

      public static final String JSON_RESULTS
      JSON-only field representing the result of each individual request.
      See Also:
    • JSON_ERROR

      public static final String JSON_ERROR
      JSON-only field representing the error field of an individual request.
      See Also:
    • JSON_MESSAGE_ID

      public static final String JSON_MESSAGE_ID
      JSON-only field sent by GCM when a message was successfully sent.
      See Also:
    • TIME_TO_LIVE

      public static final Integer TIME_TO_LIVE