public enum ChannelType extends Enum<ChannelType>
| 值 | 描述 |
|---|---|
| 0 | 文字子频道 |
| 1 | 保留,不可用 |
| 2 | 语音子频道 |
| 3 | 保留,不可用 |
| 4 | 子频道分组 |
| 10005 | 直播子频道 |
| 10006 | 应用子频道 |
| 10007 | 论坛子频道 |
| Enum Constant and Description |
|---|
APP_CHANNEL |
FORUM_CHANNEL |
GROUPING |
LIVING_CHANNEL |
TEXT_CHANNEL |
UNKNOWN1 |
UNKNOWN3 |
VOICE_CHANNEL |
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
id |
| Modifier and Type | Method and Description |
|---|---|
static ChannelType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChannelType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChannelType TEXT_CHANNEL
public static final ChannelType UNKNOWN1
public static final ChannelType VOICE_CHANNEL
public static final ChannelType UNKNOWN3
public static final ChannelType GROUPING
public static final ChannelType LIVING_CHANNEL
public static final ChannelType APP_CHANNEL
public static final ChannelType FORUM_CHANNEL
public static ChannelType[] values()
for (ChannelType c : ChannelType.values()) System.out.println(c);
public static ChannelType 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 nullCopyright © 2024. All rights reserved.