添加项目文件。
This commit is contained in:
45
MoviconHub.App/Models/MessageType.cs
Normal file
45
MoviconHub.App/Models/MessageType.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MoviconHub.App.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// WebSocket消息类型枚举
|
||||
/// </summary>
|
||||
public enum MessageType
|
||||
{
|
||||
/// <summary>
|
||||
/// 心跳消息
|
||||
/// </summary>
|
||||
Heartbeat = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 设备状态数据
|
||||
/// </summary>
|
||||
DeviceStatus = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 试验测试数据
|
||||
/// </summary>
|
||||
TestData = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 设备故障信息
|
||||
/// </summary>
|
||||
DeviceFault = 3,
|
||||
|
||||
/// <summary>
|
||||
/// 认证消息
|
||||
/// </summary>
|
||||
Authentication = 4,
|
||||
|
||||
/// <summary>
|
||||
/// 系统消息
|
||||
/// </summary>
|
||||
SystemMessage = 99
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user