Interface Batch.EventDispatcher.Payload

    • Method Detail

      • isPositiveAction

        boolean isPositiveAction()
        Indicate if the action associated with the event is positive. A positive action is : - An Open for a push campaign - A CTA click or Global tap containing a deeplink or a custom action for a messaging campaign
        Returns:
      • getCustomValue

        @Nullable
        java.lang.String getCustomValue​(@NonNull
                                        java.lang.String key)
        Get a value from a key within the custom payload associated with the event.
        Parameters:
        key -
        Returns:
        the corresponding value or null if none is set.
      • getMessagingPayload

        @Nullable
        BatchMessage getMessagingPayload()
        Get the raw payload associated with the event
        Returns:
        the payload or null if the event is not a message
      • getPushPayload

        @Nullable
        BatchPushPayload getPushPayload()
        Get the raw payload associated with the event
        Returns:
        the payload or null if the event is not a push notification