public enum NotificationType extends Enum<NotificationType> implements com.alibaba.fastjson.serializer.JSONSerializable
| 枚举常量和说明 |
|---|
DING_TALK
Ding ding web hook.
|
EMAIL
Send email.
|
MESSAGE_CENTER
Send message to message center.
|
SMS
Send SMS.
|
VOICE
Send voice to phone number.
|
WEBHOOK
Send HTTP request to target uri.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static NotificationType |
fromString(String value) |
String |
toString() |
static NotificationType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static NotificationType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
void |
write(com.alibaba.fastjson.serializer.JSONSerializer serializer,
Object fieldName,
Type fieldType,
int features) |
public static final NotificationType DING_TALK
public static final NotificationType EMAIL
public static final NotificationType MESSAGE_CENTER
public static final NotificationType SMS
public static final NotificationType WEBHOOK
public static final NotificationType VOICE
public static NotificationType[] values()
for (NotificationType c : NotificationType.values()) System.out.println(c);
public static NotificationType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static NotificationType fromString(String value)
public String toString()
toString 在类中 Enum<NotificationType>Copyright © 2020. All Rights Reserved.