forked from ape-byte/DouyinBarrageGrab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommand.cs
49 lines (42 loc) · 1 KB
/
Command.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BarrageGrab.Modles.JsonEntity
{
/*
* 例如发送 {"Cmd":1,"Data":true} 到ws连接地址 关闭程序
* 前往 http://wstool.jackxiang.com/ 在线ws测试
*/
public enum CommandCode
{
/// <summary>
/// 空指令
/// </summary>
None = 0,
/// <summary>
/// 安全关闭程序
/// </summary>
Close = 1,
/// <summary>
/// 启用系统代理 Data:bool
/// </summary>
EnableProxy = 2,
/// <summary>
/// 是否显示控制台 Data:bool
/// </summary>
DisplayConsole = 3,
}
public class Command
{
/// <summary>
/// 指令标识
/// </summary>
public CommandCode Cmd { get; set; }
/// <summary>
/// 附加数据
/// </summary>
public object Data { get; set; }
}
}