Class PushData



  • public class PushData
    extends java.lang.Object
    Chat Push notification data representation.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  PushData.Type
      Chat push notification type.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getAuthor()
      Get the author (agent name).
      static PushData getChatNotification(java.util.Map<java.lang.String,java.lang.String> data)
      Get the chat notification details from a push notifications data.
      java.lang.String getMessage()
      Get the chat message.
      PushData.Type getType()
      Get the notification type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getChatNotification

        public static PushData getChatNotification(java.util.Map<java.lang.String,java.lang.String> data)
        Get the chat notification details from a push notifications data.
        Parameters:
        data - the data from the push notification
        Returns:
        the notification data representation
      • getType

        public PushData.Type getType()
        Get the notification type.
        Returns:
        the type, MESSAGE or END
      • getAuthor

        public java.lang.String getAuthor()
        Get the author (agent name).
        Returns:
        the author
      • getMessage

        public java.lang.String getMessage()
        Get the chat message.
        Returns:
        the chat message or null if this is a chat end notification.