huminmin
75 分钟以前 a53f698e4667bc57dcc1de65f77936024f9a06a0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package cn.iocoder.yudao.module.im.enums.rtc;
 
import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
 
import java.util.Arrays;
 
/**
 * IM 通话参与者角色枚举
 *
 * @author 芋道源码
 */
@RequiredArgsConstructor
@Getter
public enum ImRtcParticipantRoleEnum implements ArrayValuable<Integer> {
 
    INVITER(1, "发起人"),
    INVITEE(2, "被邀请者"),
    JOINER(3, "主动加入者"); // 仅群通话场景:旁观者点胶囊条加入已有通话
 
    public static final Integer[] ARRAYS = Arrays.stream(values()).map(ImRtcParticipantRoleEnum::getRole).toArray(Integer[]::new);
 
    /**
     * 角色
     */
    private final Integer role;
    /**
     * 名字
     */
    private final String name;
 
    @Override
    public Integer[] array() {
        return ARRAYS;
    }
 
}