public enum NotificationType extends Enum<NotificationType> implements com.alibaba.fastjson.serializer.JSONSerializable
| Enum Constant and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static NotificationType |
fromString(String value) |
String |
toString() |
static NotificationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NotificationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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 - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static NotificationType fromString(String value)
public String toString()
toString in class Enum<NotificationType>Copyright © 2025. All Rights Reserved.