Object PayloadValidator

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • isValidNewMessage

         final Boolean isValidNewMessage(Map<String, Object> payload)

        Verify the payload contains needed field for a new message.

        Returns:

        true if the payload contains all needed fields for a new message.

      • isValidPayload

         final Boolean isValidPayload(Map<String, Object> payload)

        Verify the payload contains needed fields for the supported notification types.

        Parameters:
        payload - The payload to validate.
        Returns:

        true if the payload is valid for the supported notification types.