|
20 | 20 |
|
21 | 21 | namespace BigBlueButton\Enum; |
22 | 22 |
|
23 | | -use MabeEnum\Enum; |
24 | | - |
25 | | -class UserData extends Enum |
| 23 | +enum UserData: string |
26 | 24 | { |
27 | 25 | // Application settings |
28 | | - public const ASK_FOR_FEEDBACK_ON_LOGOUT = 'bbb_ask_for_feedback_on_logout'; |
29 | | - public const AUTO_JOIN_AUDIO = 'bbb_auto_join_audio'; |
30 | | - public const CLIENT_TITLE = 'bbb_client_title'; |
31 | | - public const FORCE_LISTEN_ONLY = 'bbb_force_listen_only'; |
32 | | - public const LISTEN_ONLY_MODE = 'bbb_listen_only_mode'; |
33 | | - public const SKIP_CHECK_AUDIO = 'bbb_skip_check_audio'; |
34 | | - public const SKIP_CHECK_AUDIO_ON_FIRST_JOIN = 'bbb_skip_check_audio_on_first_join'; |
35 | | - public const OVERRIDE_DEFAULT_LOCALE = 'bbb_override_default_locale'; |
36 | | - public const HIDE_PRESENTATION_ON_JOIN = 'bbb_hide_presentation_on_join'; |
37 | | - public const DIRECT_LEAVE_BUTTON = 'bbb_direct_leave_button'; |
| 26 | + case ASK_FOR_FEEDBACK_ON_LOGOUT = 'bbb_ask_for_feedback_on_logout'; |
| 27 | + case AUTO_JOIN_AUDIO = 'bbb_auto_join_audio'; |
| 28 | + case CLIENT_TITLE = 'bbb_client_title'; |
| 29 | + case FORCE_LISTEN_ONLY = 'bbb_force_listen_only'; |
| 30 | + case LISTEN_ONLY_MODE = 'bbb_listen_only_mode'; |
| 31 | + case SKIP_CHECK_AUDIO = 'bbb_skip_check_audio'; |
| 32 | + case SKIP_CHECK_AUDIO_ON_FIRST_JOIN = 'bbb_skip_check_audio_on_first_join'; |
| 33 | + case OVERRIDE_DEFAULT_LOCALE = 'bbb_override_default_locale'; |
| 34 | + case HIDE_PRESENTATION_ON_JOIN = 'bbb_hide_presentation_on_join'; |
| 35 | + case DIRECT_LEAVE_BUTTON = 'bbb_direct_leave_button'; |
38 | 36 |
|
39 | 37 | // Branding settings |
40 | | - public const DISPLAY_BRANDING_AREA = 'bbb_display_branding_area'; |
| 38 | + case DISPLAY_BRANDING_AREA = 'bbb_display_branding_area'; |
41 | 39 |
|
42 | 40 | // Shortcut settings |
43 | | - public const SHORTCUTS = 'bbb_shortcuts'; |
| 41 | + case SHORTCUTS = 'bbb_shortcuts'; |
44 | 42 |
|
45 | 43 | // Kurento settings (WebRTC media server) |
46 | | - public const AUTO_SHARE_WEBCAM = 'bbb_auto_share_webcam'; |
47 | | - public const PREFERRED_CAMERA_PROFILE = 'bbb_preferred_camera_profile'; |
48 | | - public const ENABLE_VIDEO = 'bbb_enable_video'; |
49 | | - public const RECORD_VIDEO = 'bbb_record_video'; |
50 | | - public const SKIP_VIDEO_PREVIEW = 'bbb_skip_video_preview'; |
51 | | - public const SKIP_VIDEO_PREVIEW_ON_FIRST_JOIN = 'bbb_skip_video_preview_on_first_join'; |
52 | | - public const MIRROR_OWN_WEBCAM = 'bbb_mirror_own_webcam'; |
53 | | - public const FULLAUDIO_BRIDGE = 'bbb_fullaudio_bridge'; |
54 | | - public const TRANSPARENT_LISTEN_ONLY = 'bbb_transparent_listen_only'; |
| 44 | + case AUTO_SHARE_WEBCAM = 'bbb_auto_share_webcam'; |
| 45 | + case PREFERRED_CAMERA_PROFILE = 'bbb_preferred_camera_profile'; |
| 46 | + case ENABLE_VIDEO = 'bbb_enable_video'; |
| 47 | + case RECORD_VIDEO = 'bbb_record_video'; |
| 48 | + case SKIP_VIDEO_PREVIEW = 'bbb_skip_video_preview'; |
| 49 | + case SKIP_VIDEO_PREVIEW_ON_FIRST_JOIN = 'bbb_skip_video_preview_on_first_join'; |
| 50 | + case MIRROR_OWN_WEBCAM = 'bbb_mirror_own_webcam'; |
| 51 | + case FULLAUDIO_BRIDGE = 'bbb_fullaudio_bridge'; |
| 52 | + case TRANSPARENT_LISTEN_ONLY = 'bbb_transparent_listen_only'; |
55 | 53 |
|
56 | 54 | // Presentation settings |
57 | | - public const FORCE_RESTORE_PRESENTATION_ON_NEW_EVENTS = 'bbb_force_restore_presentation_on_new_events'; |
| 55 | + case FORCE_RESTORE_PRESENTATION_ON_NEW_EVENTS = 'bbb_force_restore_presentation_on_new_events'; |
58 | 56 |
|
59 | 57 | // Whiteboard settings |
60 | | - public const MULTI_USER_PEN_ONLY = 'bbb_multi_user_pen_only'; |
61 | | - public const PRESENTER_TOOLS = 'bbb_presenter_tools'; |
62 | | - public const MULTI_USER_TOOLS = 'bbb_multi_user_tools'; |
| 58 | + case MULTI_USER_PEN_ONLY = 'bbb_multi_user_pen_only'; |
| 59 | + case PRESENTER_TOOLS = 'bbb_presenter_tools'; |
| 60 | + case MULTI_USER_TOOLS = 'bbb_multi_user_tools'; |
63 | 61 |
|
64 | 62 | // Theming & Styling settings |
65 | | - public const CUSTOM_STYLE = 'bbb_custom_style'; |
66 | | - public const CUSTOM_STYLE_URL = 'bbb_custom_style_url'; |
| 63 | + case CUSTOM_STYLE = 'bbb_custom_style'; |
| 64 | + case CUSTOM_STYLE_URL = 'bbb_custom_style_url'; |
67 | 65 |
|
68 | 66 | // Layout settings |
69 | | - public const AUTO_SWAP_LAYOUT = 'bbb_auto_swap_layout'; |
70 | | - public const HIDE_PRESENTATION = 'bbb_hide_presentation'; |
71 | | - public const SHOW_PARTICIPANTS_ON_LOGIN = 'bbb_show_participants_on_login'; |
72 | | - public const SHOW_PUBLIC_CHAT_ON_LOGIN = 'bbb_show_public_chat_on_login'; |
73 | | - public const HIDE_NAV_BAR = 'bbb_hide_nav_bar'; |
74 | | - public const HIDE_ACTIONS_BAR = 'bbb_hide_actions_bar'; |
75 | | - public const DEFAULT_LAYOUT = 'bbb_default_layout'; |
| 67 | + case AUTO_SWAP_LAYOUT = 'bbb_auto_swap_layout'; |
| 68 | + case HIDE_PRESENTATION = 'bbb_hide_presentation'; |
| 69 | + case SHOW_PARTICIPANTS_ON_LOGIN = 'bbb_show_participants_on_login'; |
| 70 | + case SHOW_PUBLIC_CHAT_ON_LOGIN = 'bbb_show_public_chat_on_login'; |
| 71 | + case HIDE_NAV_BAR = 'bbb_hide_nav_bar'; |
| 72 | + case HIDE_ACTIONS_BAR = 'bbb_hide_actions_bar'; |
| 73 | + case DEFAULT_LAYOUT = 'bbb_default_layout'; |
76 | 74 | } |
0 commit comments