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 Link icon

    • ORGANIZATION_OWNER Link icon

      public static final UserRole ORGANIZATION_OWNER
      Organization owner role.
    • ORGANIZATION_ADMIN Link icon

      public static final UserRole ORGANIZATION_ADMIN
      Organization administrator role.
    • ORGANIZATION_MODERATOR Link icon

      public static final UserRole ORGANIZATION_MODERATOR
      Organization moderator role.
    • MEMBER Link icon

      public static final UserRole MEMBER
      Member role.
    • GUEST Link icon

      public static final UserRole GUEST
      Guest role.
    • UNKNOWN Link icon

      public static final UserRole UNKNOWN
      Unknown role.
  • Method Details Link icon

    • values Link icon

      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 Link icon

      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 Link icon

      public int getId()
    • fromInt Link icon

      public static UserRole fromInt(int userRole)