Enum EMNotificationType

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ALL
      接收全部离线消息的推送通知
      AT
      只接收提及当前用户的离线消息的推送通知
      DEFAULT
      默认值,采用全局配置
      NONE
      不接收离线消息的推送通知
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String notificationType  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getNotificationType()  
      void setNotificationType​(java.lang.String notificationType)  
      static EMNotificationType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static EMNotificationType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • AT

        public static final EMNotificationType AT
        只接收提及当前用户的离线消息的推送通知
    • Field Detail

      • notificationType

        public java.lang.String notificationType
    • Method Detail

      • values

        public static EMNotificationType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EMNotificationType c : EMNotificationType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EMNotificationType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getNotificationType

        public java.lang.String getNotificationType()
      • setNotificationType

        public void setNotificationType​(java.lang.String notificationType)