Common networking stuffs
This commit is contained in:
13
Common/WebSocketMessage.cs
Normal file
13
Common/WebSocketMessage.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace CommonSocketLibrary.Common
|
||||
{
|
||||
public class WebSocketMessage
|
||||
{
|
||||
[JsonPropertyName("op")]
|
||||
public int OpCode { get; set; }
|
||||
|
||||
[JsonPropertyName("d")]
|
||||
public object? Data { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user