2017-03-04 17:07:26 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
|
|
namespace CommonLibrary
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 用于网络通信的二级协议头说明
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class CommonHeadCode
|
|
|
|
|
|
{
|
2017-03-05 18:32:55 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 用于同步和异步的网络的身份令牌,提升安全性
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static Guid KeyToken { get; set; } = new Guid("1275BB9A-14B2-4A96-9673-B0AF0463D474");
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-03-04 17:07:26 +08:00
|
|
|
|
/// <summary>
|
2017-05-05 23:07:44 +08:00
|
|
|
|
/// 同步通信的头说明,以字母A开头,后面接B,C,D,E,F
|
2017-03-04 17:07:26 +08:00
|
|
|
|
/// </summary>
|
2017-04-25 21:39:15 +08:00
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Auto)]
|
2017-03-04 17:07:26 +08:00
|
|
|
|
public class SimplifyHeadCode
|
|
|
|
|
|
{
|
|
|
|
|
|
public static string 维护检查 { get; } = "A001";//A开始的表明是系统相关的
|
|
|
|
|
|
public static string 更新检查 { get; } = "A002";
|
|
|
|
|
|
public static string 账户检查 { get; } = "A003";
|
|
|
|
|
|
public static string 参数下载 { get; } = "A004";
|
|
|
|
|
|
public static string 密码修改 { get; } = "A005";
|
|
|
|
|
|
public static string 更细账户信息 { get; } = "A006";
|
|
|
|
|
|
public static string 获取账户信息 { get; } = "A007";
|
|
|
|
|
|
public static string 更新公告 { get; } = "A008";
|
|
|
|
|
|
public static string 注册账号 { get; } = "A009";
|
2017-03-22 19:50:11 +08:00
|
|
|
|
public static string 更新版本号 { get; } = "A010";
|
2017-05-05 23:07:44 +08:00
|
|
|
|
public static string 请求文件列表 { get; } = "A011";
|
2017-06-05 17:32:46 +08:00
|
|
|
|
public static string 意见反馈 { get; } = "A012";
|
2017-03-04 17:07:26 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-17 22:20:52 +08:00
|
|
|
|
|
2017-03-04 17:07:26 +08:00
|
|
|
|
public static string 网络日志查看 { get; } = "B001";//B开头的是日志请求和清空
|
|
|
|
|
|
public static string 网络日志清空 { get; } = "B002";
|
|
|
|
|
|
public static string 同步日志查看 { get; } = "B003";
|
|
|
|
|
|
public static string 同步日志清空 { get; } = "B004";
|
|
|
|
|
|
public static string 更新日志查看 { get; } = "B005";
|
|
|
|
|
|
public static string 更新日志清空 { get; } = "B006";
|
2017-05-19 10:20:10 +08:00
|
|
|
|
public static string 运行日志查看 { get; } = "B007";
|
|
|
|
|
|
public static string 运行日志清空 { get; } = "B008";
|
2017-06-04 19:13:26 +08:00
|
|
|
|
public static string 共享文件日志查看 { get; } = "B009";
|
|
|
|
|
|
public static string 共享文件日志清空 { get; } = "B010";
|
2017-06-05 17:32:46 +08:00
|
|
|
|
public static string 建议反馈日志查看 { get; } = "B011";
|
|
|
|
|
|
public static string 建议反馈日志清空 { get; } = "B012";
|
2017-06-07 16:20:40 +08:00
|
|
|
|
public static string UDP日志查看 { get; } = "B013";
|
|
|
|
|
|
public static string UDP日志清空 { get; } = "B014";
|
2017-03-04 17:07:26 +08:00
|
|
|
|
|
2017-05-17 22:20:52 +08:00
|
|
|
|
/**************************************************************************************
|
|
|
|
|
|
*
|
|
|
|
|
|
* 为了保证您的指令头不和系统的冲突,您的指令头应该以C,D,E,F开头
|
|
|
|
|
|
*
|
|
|
|
|
|
**************************************************************************************/
|
|
|
|
|
|
|
2017-03-04 17:07:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 异步通信的头说明,以字母H开头,后面跟I,G,K,L,M
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class MultiNetHeadCode
|
|
|
|
|
|
{
|
|
|
|
|
|
public static string 所有客户端在线信息 { get; } = "H001";
|
|
|
|
|
|
public static string 关闭所有客户端 { get; } = "H002";
|
|
|
|
|
|
public static string 弹窗消息 { get; } = "H003";
|
2017-03-06 21:10:38 +08:00
|
|
|
|
public static string 时间推送 { get; } = "H004";
|
2017-05-17 22:20:52 +08:00
|
|
|
|
public static string 文件数量 { get; } = "H005";
|
|
|
|
|
|
public static string 初始化数据 { get; } = "H006";
|
|
|
|
|
|
public static string 留言消息 { get; } = "H007";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************************
|
|
|
|
|
|
*
|
|
|
|
|
|
* 为了保证您的指令头不和系统的冲突,您的指令头应该以I,J,K,L开头
|
|
|
|
|
|
*
|
|
|
|
|
|
**************************************************************************************/
|
2017-03-04 17:07:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-17 22:20:52 +08:00
|
|
|
|
//可以在下面进行扩展,需要保证长度都是统一的,新建您自己的类型
|
2017-03-04 17:07:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|