java.lang.Object
java.lang.Enum<UserRole>
com.github.jamesnetherton.zulip.client.api.user.UserRole
All Implemented Interfaces:
Serializable, Comparable<UserRole>

public enum UserRole extends Enum<UserRole>
Defines Zulip user roles.
  • Enum Constant Details

    • ORGANIZATION_OWNER

      public static final UserRole ORGANIZATION_OWNER
      Organization owner role.
    • ORGANIZATION_ADMIN

      public static final UserRole ORGANIZATION_ADMIN
      Organization administrator role.
    • ORGANIZATION_MODERATOR

      public static final UserRole ORGANIZATION_MODERATOR
      Organization moderator role.
    • MEMBER

      public static final UserRole MEMBER
      Member role.
    • GUEST

      public static final UserRole GUEST
      Guest role.
    • UNKNOWN

      public static final UserRole UNKNOWN
      Unknown role.
  • Method Details

    • values

      public static UserRole[] 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

      public static UserRole valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getId

      public int getId()
    • fromInt

      public static UserRole fromInt(int userRole)