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
| using System;
| using System.Collections.Generic;
| using System.ComponentModel;
| using System.Text;
|
| namespace Tiger.Model
| {
| public class MQTT
| {
| public class Message
| {
| public Message()
| {
|
| }
|
| public Message(bool isSuccessed, Voice voice, string content, string color)
| {
| IsSuccessed = isSuccessed;
| Voice = voice;
| Content = content;
| Color = color;
| }
|
| /// <summary>
| /// 是否成功
| /// </summary>
| public bool IsSuccessed { get; set; }
|
| /// <summary>
| /// 是否发声
| /// </summary>
| public Voice Voice { get; set; }
|
| /// <summary>
| /// 消息
| /// </summary>
| public string Content { get; set; }
|
| /// <summary>
| /// 颜色
| /// </summary>
| public string Color { get; set; }
| }
|
| public enum Voice
| {
| [Description("不发音")]
| Silent,
| [Description("成功")]
| Success,
| [Description("通过")]
| Pass,
| [Description("失败")]
| Fail,
| [Description("警告")]
| Warning,
| }
| }
| }
|
|