类 EaseNotificationMsgManager


  • public class EaseNotificationMsgManager
    extends java.lang.Object
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      io.agora.chat.ChatMessage createMessage​(java.lang.String message, java.util.Map<java.lang.String,​java.lang.Object> ext)
      Create notification message
      java.util.Map<java.lang.String,​java.lang.Object> createMsgExt()
      Create ext map
      java.util.List<io.agora.chat.ChatMessage> getAllMessages()
      Get all messages of notification
      io.agora.chat.Conversation getConversation()
      Get notification conversation
      io.agora.chat.Conversation getConversation​(boolean createIfNotExists)
      Get notification conversation
      static EaseNotificationMsgManager getInstance()  
      io.agora.chat.ChatMessage getLastMessageByConversation​(io.agora.chat.Conversation con)
      Get latest message
      java.lang.String getMessageContent​(io.agora.chat.ChatMessage message)
      Get the message content
      boolean isNotificationConversation​(io.agora.chat.Conversation conversation)
      Check whether is a notification conversation
      boolean isNotificationMessage​(io.agora.chat.ChatMessage message)
      Check whether is a notification message
      void markAllMessagesAsRead()
      Make all message in notification conversation as read
      boolean removeMessage​(io.agora.chat.ChatMessage message)
      Remove notification message
      boolean updateMessage​(io.agora.chat.ChatMessage message)
      Update notification message
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • createMessage

        public io.agora.chat.ChatMessage createMessage​(java.lang.String message,
                                                       java.util.Map<java.lang.String,​java.lang.Object> ext)
        Create notification message
        参数:
        message -
        ext -
        返回:
      • createMsgExt

        public java.util.Map<java.lang.String,​java.lang.Object> createMsgExt()
        Create ext map
        返回:
      • getLastMessageByConversation

        public io.agora.chat.ChatMessage getLastMessageByConversation​(io.agora.chat.Conversation con)
        Get latest message
        参数:
        con -
        返回:
      • getConversation

        public io.agora.chat.Conversation getConversation()
        Get notification conversation
        返回:
      • getConversation

        public io.agora.chat.Conversation getConversation​(boolean createIfNotExists)
        Get notification conversation
        参数:
        createIfNotExists -
        返回:
      • getAllMessages

        public java.util.List<io.agora.chat.ChatMessage> getAllMessages()
        Get all messages of notification
        返回:
      • isNotificationMessage

        public boolean isNotificationMessage​(io.agora.chat.ChatMessage message)
        Check whether is a notification message
        参数:
        message -
        返回:
      • isNotificationConversation

        public boolean isNotificationConversation​(io.agora.chat.Conversation conversation)
        Check whether is a notification conversation
        参数:
        conversation -
        返回:
      • getMessageContent

        public java.lang.String getMessageContent​(io.agora.chat.ChatMessage message)
        Get the message content
        参数:
        message -
        返回:
      • updateMessage

        public boolean updateMessage​(io.agora.chat.ChatMessage message)
        Update notification message
        参数:
        message -
        返回:
      • removeMessage

        public boolean removeMessage​(io.agora.chat.ChatMessage message)
        Remove notification message
        参数:
        message -
        返回:
      • markAllMessagesAsRead

        public void markAllMessagesAsRead()
        Make all message in notification conversation as read