-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMeet.razor.cs
More file actions
59 lines (51 loc) · 1.29 KB
/
Meet.razor.cs
File metadata and controls
59 lines (51 loc) · 1.29 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using Microsoft.AspNetCore.Components;
namespace BootstrapBlazor.Components;
/// <summary>
/// Meet 组件用于显示会议室
/// </summary>
public partial class Meet
{
/// <summary>
/// 获得/设置 服务器地址
/// </summary>
[Parameter]
[EditorRequired]
public string? Domain { get; set; }
/// <summary>
/// 获得/设置 会议信息
/// </summary>
[EditorRequired]
[Parameter]
public MeetOption? Option { get; set; }
/// <summary>
/// 获得/设置 会议室初始化完成事件
/// </summary>
[Parameter]
public Action? OnLoad { get; set; }
/// <summary>
/// <inheritdoc/>
/// </summary>
/// <returns></returns>
protected override async Task InvokeInitAsync()
{
await InvokeVoidAsync("init", Id, Interop, Domain, Option);
}
/// <summary>
/// 执行命令
/// </summary>
/// <param name="command"></param>
/// <param name="args"></param>
/// <returns></returns>
public Task ExecuteCommand(string command, object? args = null)
{
return InvokeVoidAsync("executeCommand", Id, command, args);
}
/// <summary>
/// 会议室加载完成回调
/// </summary>
[JSInvokable]
public void OnLoadCallBack()
{
OnLoad?.Invoke();
}
}