Enum Class ChannelType
- All Implemented Interfaces:
Serializable, Comparable<ChannelType>, Constable
通知遞送通道型別
標識一則通知要經哪個通道遞送。對應的 NotificationChannel 實作須註冊才生效;各通道的收件位址
由 Recipient.addressFor(ChannelType) 解析。
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription電子郵件(EmailNotificationChannel,位址=email)站內信(InAppNotificationChannel,位址=userId;Phase 3)LINE 推播(LineNotificationChannel,位址=LINE userId;Phase 3)簡訊(SmsNotificationChannel,位址=手機號;Phase 3) -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelTypeReturns the enum constant of this class with the specified name.static ChannelType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMAIL
電子郵件(EmailNotificationChannel,位址=email) -
IN_APP
站內信(InAppNotificationChannel,位址=userId;Phase 3) -
SMS
簡訊(SmsNotificationChannel,位址=手機號;Phase 3) -
LINE
LINE 推播(LineNotificationChannel,位址=LINE userId;Phase 3)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-