net.polyv.live.v1.constant
枚举 LiveConstant.UserType
java.lang.Object
java.lang.Enum<LiveConstant.UserType>
net.polyv.live.v1.constant.LiveConstant.UserType
- 所有已实现的接口:
- Serializable, Comparable<LiveConstant.UserType>
- 包容类:
- LiveConstant
public static enum LiveConstant.UserType
- extends Enum<LiveConstant.UserType>
用户类型,可以选择多个类型,用英文逗号隔开。可选值包括:
slice:云课堂学员
teacher:讲师
guest:嘉宾
manager:管理员
assistant:助教
viewer:特邀观众
monitor:场监
attendee:研讨会参与者
student:普通直播观众
SLICE
public static final LiveConstant.UserType SLICE
TEACHER
public static final LiveConstant.UserType TEACHER
GUEST
public static final LiveConstant.UserType GUEST
MANAGER
public static final LiveConstant.UserType MANAGER
ASSISTANT
public static final LiveConstant.UserType ASSISTANT
VIEWER
public static final LiveConstant.UserType VIEWER
MONITOR
public static final LiveConstant.UserType MONITOR
ATTENDEE
public static final LiveConstant.UserType ATTENDEE
STUDENT
public static final LiveConstant.UserType STUDENT
values
public static LiveConstant.UserType[] values()
- 按照声明该枚举类型的常量的顺序,返回
包含这些常量的数组。该方法可用于迭代
常量,如下所示:
for (LiveConstant.UserType c : LiveConstant.UserType.values())
System.out.println(c);
valueOf
public static LiveConstant.UserType valueOf(String name)
- 返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格。)
- 参数:
name - 要返回的枚举常量的名称。
- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException
getType
public String getType()
Copyright © 2020. All Rights Reserved.