forked from EddieDemon/BNSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChatEventType.cs
95 lines (94 loc) · 2.82 KB
/
ChatEventType.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
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
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
namespace BNSharp
{
/// <summary>
/// Specifies types of chat events that may occur.
/// </summary>
[DataContract]
public enum ChatEventType
{
/// <summary>
/// Specifies an invalid chat event type.
/// </summary>
[EnumMember]
None = 0,
/// <summary>
/// Indicates that another user was already in the current channel when it was joined by the client.
/// </summary>
[EnumMember]
UserInChannel = 1,
/// <summary>
/// Indicates that another user has joined the current channel.
/// </summary>
[EnumMember]
UserJoinedChannel = 2,
/// <summary>
/// Indicates that another user has left the current channel.
/// </summary>
[EnumMember]
UserLeftChannel = 3,
/// <summary>
/// Indicates that another user has whispered the client.
/// </summary>
[EnumMember]
WhisperReceived = 4,
/// <summary>
/// Indicates that a user in the current channel spoke.
/// </summary>
[EnumMember]
Talk = 5,
/// <summary>
/// Indicates that a server operator has broadcast a message.
/// </summary>
[EnumMember]
Broadcast = 6,
/// <summary>
/// Indicates that the client joined a new channel.
/// </summary>
[EnumMember]
NewChannelJoined = 7,
/// <summary>
/// Indicates that a user's channel properties have been updated.
/// </summary>
[EnumMember]
UserFlagsChanged = 9,
/// <summary>
/// Indicates that a whisper was sent.
/// </summary>
[EnumMember]
WhisperSent = 0x0a,
/// <summary>
/// Indicates that a channel join failed because the channel is full.
/// </summary>
[EnumMember]
ChannelFull = 0x0d,
/// <summary>
/// Indicates that a channel view failed because the channel does not exist.
/// </summary>
[EnumMember]
ChannelDNE = 0x0e,
/// <summary>
/// Indicates that a channel join failed because the channel is restricted.
/// </summary>
[EnumMember]
ChannelRestricted = 0x0f,
/// <summary>
/// Indicates that the server is relaying information, perhaps from a command.
/// </summary>
[EnumMember]
Information = 0x12,
/// <summary>
/// Indicates that there was a command error.
/// </summary>
[EnumMember]
Error = 0x13,
/// <summary>
/// Indicates that a user has performed an emote.
/// </summary>
[EnumMember]
Emote = 0x17,
}
}