Package com.easemob.im.server.model
Enum EMNotificationType
- java.lang.Object
-
- java.lang.Enum<EMNotificationType>
-
- com.easemob.im.server.model.EMNotificationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EMNotificationType>
public enum EMNotificationType extends java.lang.Enum<EMNotificationType>
-
-
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.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final EMNotificationType DEFAULT
默认值,采用全局配置
-
ALL
public static final EMNotificationType ALL
接收全部离线消息的推送通知
-
AT
public static final EMNotificationType AT
只接收提及当前用户的离线消息的推送通知
-
NONE
public static final EMNotificationType NONE
不接收离线消息的推送通知
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
getNotificationType
public java.lang.String getNotificationType()
-
setNotificationType
public void setNotificationType(java.lang.String notificationType)
-
-