public enum AppChannelType extends Enum<AppChannelType>
| 枚举常量和说明 |
|---|
APP_CHANNEL
应用消息通道
|
APP_GROUP_CHANNEL
分组消息通道
|
APP_ID_CHANNEL
设备消息通道
|
APP_PROJECT_CHANNEL
项目消息通道
|
| 限定符和类型 | 方法和说明 |
|---|---|
static AppChannelType |
getAppChannelTypeByChannelId(Integer channelId)
获取App 通信渠道枚举
|
String |
getChannelDesc() |
Integer |
getChannelId() |
static AppChannelType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static AppChannelType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final AppChannelType APP_ID_CHANNEL
public static final AppChannelType APP_PROJECT_CHANNEL
public static final AppChannelType APP_GROUP_CHANNEL
public static final AppChannelType APP_CHANNEL
public static AppChannelType[] values()
for (AppChannelType c : AppChannelType.values()) System.out.println(c);
public static AppChannelType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public Integer getChannelId()
public String getChannelDesc()
public static AppChannelType getAppChannelTypeByChannelId(Integer channelId) throws EnumException
channelId - App通信渠道idEnumExceptionCopyright © 2023. All rights reserved.