public static enum Channel.ChannelType extends java.lang.Enum<Channel.ChannelType>
Public channels are visible to all users on the service instance and can be obtained
in a list via call to Channels.getPublicChannelsList()
.
Private channels are only visible to participating users. Their list can be obtained
via call to Channels.getUserChannelsList()
.
Enum Constant and Description |
---|
PRIVATE
Channel is private and only visible to invited members.
|
PUBLIC
Channel is publicly visible.
|
Modifier and Type | Method and Description |
---|---|
static Channel.ChannelType |
fromInt(int value) |
int |
getValue() |
static Channel.ChannelType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Channel.ChannelType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Channel.ChannelType PUBLIC
public static final Channel.ChannelType PRIVATE
public static Channel.ChannelType[] values()
for (Channel.ChannelType c : Channel.ChannelType.values()) System.out.println(c);
public static Channel.ChannelType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static Channel.ChannelType fromInt(int value)