Enum TopicVisibilityPolicy
java.lang.Object
java.lang.Enum<TopicVisibilityPolicy>
com.github.jamesnetherton.zulip.client.api.stream.TopicVisibilityPolicy
- All Implemented Interfaces:
Serializable
,Comparable<TopicVisibilityPolicy>
Defines the type of topic visibility policy.
See https://zulip.com/api/update-user-topic#parameter-visibility_policy
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic TopicVisibilityPolicy
fromInt
(int visibilityPolicy) int
getId()
static TopicVisibilityPolicy
Returns the enum constant of this type with the specified name.static TopicVisibilityPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
Removes the visibility policy previously set for the topic. -
MUTED
Mutes the topic in a stream. -
UNMUTED
Unmutes the topic in a muted stream.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public int getId() -
fromInt
-