mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 10:18:27 -04:00
Namespace changes to make them make sense
This commit is contained in:
29
src/NadekoBot.Voice/Models/VoicePayload.cs
Normal file
29
src/NadekoBot.Voice/Models/VoicePayload.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace Discord.Models.Gateway
|
||||
{
|
||||
public sealed class VoicePayload
|
||||
{
|
||||
[JsonProperty("op")]
|
||||
public VoiceOpCode OpCode { get; set; }
|
||||
|
||||
[JsonProperty("d")]
|
||||
public JToken Data { get; set; }
|
||||
}
|
||||
|
||||
public enum VoiceOpCode
|
||||
{
|
||||
Identify = 0,
|
||||
SelectProtocol = 1,
|
||||
Ready = 2,
|
||||
Heartbeat = 3,
|
||||
SessionDescription = 4,
|
||||
Speaking = 5,
|
||||
HeartbeatAck = 6,
|
||||
Resume = 7,
|
||||
Hello = 8,
|
||||
Resumed = 9,
|
||||
ClientDisconnect = 13,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user