schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
using Newtonsoft.Json.Linq;
using Sodao.FastSocket.Server.Messaging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
 
namespace XImaging.Automation.Service.Message
{
    public class BiosenDriverMessage : IMessage
    {
        protected string m_strGUID;
 
        protected int m_strEndpoint;
 
        protected JObject m_jsonOriginMessage;
 
        protected string m_strMessageID;
 
        protected int m_iMessageType;
 
        protected string m_strMethod;
 
        protected string m_strEquipmentID;
 
        protected string m_strWorkflowID;
 
        protected string m_strExperimentID;
 
        protected JObject m_jsonParameters;
 
        protected int m_iTroubleshoot;
 
        protected string m_strTimestamp;
 
        /// <summary>
        /// 消息类型0: 心跳包
        /// </summary>
        public static int MESSAGE_TYPE_HEARTBEAT { get; } = 0;
        /// <summary>
        /// 消息类型1:方法消息(延迟返回消息)
        /// </summary>
        public static int MESSAGE_TYPE_TASK { get; } = 1;
        /// <summary>
        /// 消息类型2:查询方法消息(即时返回消息)
        /// </summary>
        public static int MESSAGE_TYPE_QUERY { get; } = 2;
        /// <summary>
        /// 消息类型3:错误处理消息(无返回消息)
        /// </summary>
        public static int MESSAGE_TYPE_TROUBLESHOOT { get; } = 3;
        /// <summary>
        /// 消息类型4:确认消息
        /// </summary>
        public static int MESSAGE_TYPE_ACK { get; } = 4;
        /// <summary>
        /// 消息类型5:完成消息
        /// </summary>
        public static int MESSAGE_TYPE_FINISH { get; } = 5;
        /// <summary>
        /// 消息类型6:错误消息(可被代替,兼容v1.6版本)
        /// </summary>
        public static int MESSAGE_TYPE_ERROR { get; } = 6;
 
 
        public static int METHOD_STATUS_NULL { get; } = -1;
 
        public static int METHOD_STATUS_SCHEDULED { get; } = 0;
 
        public static int METHOD_STATUS_INPROGRES { get; } = 1;
 
        public static int METHOD_STATUS_COMPLETED { get; } = 2;
 
        public static int METHOD_STATUS_FAILED { get; } = 3;
 
        public static int METHOD_STATUS_CANCELED { get; } = 4;
 
        public string GUID
        {
            get
            {
                return this.m_strGUID;
            }
        }
 
        public int LocalEndpoint
        {
            get
            {
                return this.m_strEndpoint;
            }
        }
 
        public string MessageID
        {
            get
            {
                return this.m_strMessageID;
            }
        }
 
        public int MessageType
        {
            get
            {
                return this.m_iMessageType;
            }
        }
 
        public string Method
        {
            get
            {
                return this.m_strMethod;
            }
        }
 
        public string EquipmentID
        {
            get
            {
                return this.m_strEquipmentID;
            }
        }
 
        public string WorkflowID
        {
            get
            {
                return this.m_strWorkflowID;
            }
        }
 
        public string ExperimentID
        {
            get
            {
                return this.m_strExperimentID;
            }
        }
 
        public string Timestamp
        {
            get
            {
                return this.m_strTimestamp;
            }
        }
 
        public BiosenDriverMessage()
        {
 
        }
    }
}